Documentation ¶
Index ¶
- type AutoCert
- func (ac *AutoCert) Delete(cli clientset.Interface) error
- func (ac AutoCert) GetName() string
- func (ac AutoCert) GetNamespace() string
- func (ac *AutoCert) GetOrRequest(cli clientset.Interface) (*corev1.Secret, error)
- func (ac *AutoCert) Refresh(cli clientset.Interface) (*corev1.Secret, error)
- func (ac *AutoCert) Request(cli clientset.Interface) (*corev1.Secret, error)
- type SharedPassword
- func (password *SharedPassword) AsSecretReference() corev1.SecretReference
- func (password SharedPassword) CreateOrUpdateToSecret(cli clientset.Interface) error
- func (password *SharedPassword) Delete(cli clientset.Interface) error
- func (password *SharedPassword) GetFromSecret(cli clientset.Interface) error
- func (password SharedPassword) GetName() string
- func (password SharedPassword) GetNamespace() string
- func (password *SharedPassword) Rand(length int) (string, error)
- func (password SharedPassword) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoCert ¶
type AutoCert struct { // Alternative IPs in the certificate IPs []net.IP // Alternative names (SANs) in the certificate Names []string // The Name of the secret where the certificate will be saved SecretName string // ... with namespace SecretNamespace string // contains filtered or unexported fields }
AutoCert is a certificate for a service that is automatically signed by the Kubernetes CA.
func NewAutoCert ¶
NewAutoCert creates a new automatically-signed service certificate
func NewServiceCertFromReference ¶
func NewServiceCertFromReference(ref corev1.SecretReference) (*AutoCert, error)
NewServiceCertFromReference creates a new automatically-signed service certificate
func (*AutoCert) Delete ¶
Delete removes the certificate. The certificate doesn't need to have been get/requested.
func (AutoCert) GetNamespace ¶
GetNamespace returns the AutoCert.SecretNamespace
func (*AutoCert) GetOrRequest ¶
GetOrRequest gets a certificate from the secret, or perform a new certificate request
type SharedPassword ¶
type SharedPassword struct { // contains filtered or unexported fields }
SharedPassword type
func NewSharedPassword ¶
func NewSharedPassword(name, namespace string) SharedPassword
NewSharedPassword returns a new SharedPassword type
func (*SharedPassword) AsSecretReference ¶
func (password *SharedPassword) AsSecretReference() corev1.SecretReference
AsSecretReference returns a SecretReference type
func (SharedPassword) CreateOrUpdateToSecret ¶
func (password SharedPassword) CreateOrUpdateToSecret(cli clientset.Interface) error
CreateOrUpdateToSecret publishes a password as a secret
func (*SharedPassword) Delete ¶
func (password *SharedPassword) Delete(cli clientset.Interface) error
Delete deletes the SharedPassword
func (*SharedPassword) GetFromSecret ¶
func (password *SharedPassword) GetFromSecret(cli clientset.Interface) error
GetFromSecret gets the shared password from a Secret
func (SharedPassword) GetName ¶
func (password SharedPassword) GetName() string
GetName returns the name
func (SharedPassword) GetNamespace ¶
func (password SharedPassword) GetNamespace() string
GetNamespace returns the namespace
func (*SharedPassword) Rand ¶
func (password *SharedPassword) Rand(length int) (string, error)
Rand returns a new password string of random length and characters
func (SharedPassword) String ¶
func (password SharedPassword) String() string
String implements the Stringer interface