Documentation ¶
Index ¶
- func DecodeX509CertificateBytes(certBytes []byte) (*x509.Certificate, error)
- func DecodeX509CertificateChainBytes(certBytes []byte) ([]*x509.Certificate, error)
- func GetKubernetesHost(config *rest.Config) string
- func GetRandomString(n int) string
- func SecretName(name string) string
- type CertConfig
- type CsrConfig
- type DefaultConfig
- func (d *DefaultConfig) WithCertConfig(caKeyFile string, groups []string, dnsNames []string, ipAddrs []net.IP) Interface
- func (d *DefaultConfig) WithCsrConfig(groups []string, dnsNames []string, ipAddrs []net.IP, ...) Interface
- func (d *DefaultConfig) WithServiceAccountConfig(namespace string, sa *v1.ServiceAccount) Interface
- func (d *DefaultConfig) WithWebhookConfigConfig(webhookURL string) Interface
- type Interface
- type ServiceAccountConfig
- type WebhookConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeX509CertificateBytes ¶
func DecodeX509CertificateBytes(certBytes []byte) (*x509.Certificate, error)
DecodeX509CertificateBytes will decode a PEM encoded x509 Certificate.
func DecodeX509CertificateChainBytes ¶
func DecodeX509CertificateChainBytes(certBytes []byte) ([]*x509.Certificate, error)
DecodeX509CertificateChainBytes will decode a PEM encoded x509 Certificate chain.
func GetKubernetesHost ¶
func GetRandomString ¶
func SecretName ¶
Types ¶
type CertConfig ¶
type CertConfig struct { *DefaultConfig // contains filtered or unexported fields }
type CsrConfig ¶
type CsrConfig struct { *DefaultConfig // contains filtered or unexported fields }
type DefaultConfig ¶
type DefaultConfig struct {
// contains filtered or unexported fields
}
func NewConfig ¶
func NewConfig(user string, clusterName string, expirationSeconds int32) *DefaultConfig
func (*DefaultConfig) WithCertConfig ¶
func (*DefaultConfig) WithCsrConfig ¶
func (d *DefaultConfig) WithCsrConfig(groups []string, dnsNames []string, ipAddrs []net.IP, csr *csrv1.CertificateSigningRequest) Interface
func (*DefaultConfig) WithServiceAccountConfig ¶
func (d *DefaultConfig) WithServiceAccountConfig(namespace string, sa *v1.ServiceAccount) Interface
func (*DefaultConfig) WithWebhookConfigConfig ¶
func (d *DefaultConfig) WithWebhookConfigConfig(webhookURL string) Interface
type ServiceAccountConfig ¶
type ServiceAccountConfig struct { *DefaultConfig // contains filtered or unexported fields }
type WebhookConfig ¶
type WebhookConfig struct { *DefaultConfig // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.