Documentation ¶
Overview ¶
+kubebuilder:validation:Optional
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientTLSConfig ¶
type ClientTLSConfig struct { CertFile string `json:"cert_file"` KeyFile string `json:"key_file"` CAFile string `json:"ca_file"` KeyLogWriter string `json:"key_log_file"` InsecureSkipVerify bool `json:"insecure_skip_verify"` }
ClientTLSConfig is the config for client TLS. swagger:model +kubebuilder:object:generate=true
func (*ClientTLSConfig) DeepCopy ¶ added in v0.1.2
func (in *ClientTLSConfig) DeepCopy() *ClientTLSConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientTLSConfig.
func (*ClientTLSConfig) DeepCopyInto ¶ added in v0.1.2
func (in *ClientTLSConfig) DeepCopyInto(out *ClientTLSConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClientTLSConfig) GetGRPCDialOptions ¶
func (c *ClientTLSConfig) GetGRPCDialOptions(insecureEnabled bool) ([]grpc.DialOption, error)
GetGRPCDialOptions creates GRPC DialOptions for TLS.
func (*ClientTLSConfig) GetTLSConfig ¶
func (c *ClientTLSConfig) GetTLSConfig() (*tls.Config, error)
GetTLSConfig initializes tls.Config from config options.
type Constructor ¶
type Constructor struct { Name string ConfigKey string DefaultConfig ServerTLSConfig }
Constructor holds fields to create an annotated instance of *tls.Config.
func (Constructor) Annotate ¶
func (constructor Constructor) Annotate() fx.Option
Annotate creates an annotated instance of *tls.Config.
type ServerTLSConfig ¶
type ServerTLSConfig struct { // Server Cert file path CertFile string `json:"cert_file"` // Server Key file path KeyFile string `json:"key_file"` // Client CA file path ClientCAFile string `json:"client_ca_file"` // Allowed CN AllowedCN string `json:"allowed_cn" validate:"omitempty,fqdn"` // Enabled TLS Enabled bool `json:"enabled" default:"false"` }
ServerTLSConfig holds configuration for setting up server TLS support. swagger:model +kubebuilder:object:generate=true
func (*ServerTLSConfig) DeepCopy ¶ added in v0.1.2
func (in *ServerTLSConfig) DeepCopy() *ServerTLSConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerTLSConfig.
func (*ServerTLSConfig) DeepCopyInto ¶ added in v0.1.2
func (in *ServerTLSConfig) DeepCopyInto(out *ServerTLSConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.