@@ -34,18 +34,22 @@ const (
3434 UsernameSecretKey = "username"
3535 PasswordSecretKey = "password"
3636 CACrtSecretKey = "ca.crt"
37- TlsCrtSecretKey = "tls.crt"
38- TlsKeySecretKey = "tls.key"
37+ TLSCrtSecretKey = "tls.crt"
38+ TLSKeySecretKey = "tls.key"
3939 PrivateKeySecretKey = "identity"
4040 PublicKeySecretKey = "identity.pub"
4141 KnownHostsSecretKey = "known_hosts"
4242 BearerTokenKey = "bearerToken"
4343
44- // Depreacted: These keys are used in the generated secrets if the
45- // command was invoked with the deprecated TLS flags.
46- CAFileSecretKey = "caFile"
44+ // Deprecated: Replaced by CACrtSecretKey, but kept for backwards
45+ // compatibility with deprecated TLS flags.
46+ CAFileSecretKey = "caFile"
47+ // Deprecated: Replaced by TLSCrtSecretKey, but kept for backwards
48+ // compatibility with deprecated TLS flags.
4749 CertFileSecretKey = "certFile"
48- KeyFileSecretKey = "keyFile"
50+ // Deprecated: Replaced by TLSKeySecretKey, but kept for backwards
51+ // compatibility with deprecated TLS flags.
52+ KeyFileSecretKey = "keyFile"
4953)
5054
5155type Options struct {
@@ -61,17 +65,21 @@ type Options struct {
6165 Username string
6266 Password string
6367 CACrt []byte
64- TlsCrt []byte
65- TlsKey []byte
68+ TLSCrt []byte
69+ TLSKey []byte
6670 TargetPath string
6771 ManifestFile string
6872 BearerToken string
6973
70- // Depreacted: These fields are used to store TLS data that
71- // specified by the deprecated TLS flags.
72- CAFile []byte
74+ // Deprecated: Replaced by CACrt, but kept for backwards compatibility
75+ // with deprecated TLS flags.
76+ CAFile []byte
77+ // Deprecated: Replaced by TLSCrt, but kept for backwards compatibility
78+ // with deprecated TLS flags.
7379 CertFile []byte
74- KeyFile []byte
80+ // Deprecated: Replaced by TLSKey, but kept for backwards compatibility
81+ // with deprecated TLS flags.
82+ KeyFile []byte
7583}
7684
7785func MakeDefaultOptions () Options {
0 commit comments