Documentation ¶
Index ¶
- Constants
- type CertParams
- type CertResponse
- type CertificateGenerator
- type CertsLoader
- type InMemoryCertificateStore
- type Info
- type KnativeServing
- type Logger
- type PasswordGenerator
- type PasswordParams
- type Registry
- type SSLDirConfig
- func (c SSLDirConfig) ContainsEnvVar(envs []corev1.EnvVar) bool
- func (c SSLDirConfig) DockerVolume() corev1.Volume
- func (c SSLDirConfig) DockerVolumeMount(readOnly bool) corev1.VolumeMount
- func (c SSLDirConfig) EnvVar() corev1.EnvVar
- func (c SSLDirConfig) Volume() corev1.Volume
- func (c SSLDirConfig) VolumeMount(readOnly bool) corev1.VolumeMount
Constants ¶
View Source
const DefaultPasswordLength = 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertParams ¶
type CertParams struct { CommonName string `yaml:"common_name"` Organization string `yaml:"organization"` Organizations []string `yaml:"organizations"` AlternativeNames []string `yaml:"alternative_names"` IsCA bool `yaml:"is_ca"` CAName string `yaml:"ca"` ExtKeyUsage []string `yaml:"extended_key_usage"` }
type CertResponse ¶
type CertificateGenerator ¶
type CertificateGenerator struct {
// contains filtered or unexported fields
}
func NewCertificateGenerator ¶
func NewCertificateGenerator(loader CertsLoader) CertificateGenerator
func (CertificateGenerator) Generate ¶
func (cfg CertificateGenerator) Generate(cParams CertParams) (CertResponse, error)
type CertsLoader ¶
type CertsLoader interface {
LoadCerts(string) (*x509.Certificate, *rsa.PrivateKey, error)
}
type InMemoryCertificateStore ¶
type InMemoryCertificateStore struct {
// contains filtered or unexported fields
}
func NewInMemoryCertificateStore ¶
func NewInMemoryCertificateStore() *InMemoryCertificateStore
func (*InMemoryCertificateStore) LoadCerts ¶
func (s *InMemoryCertificateStore) LoadCerts(name string) (*x509.Certificate, *rsa.PrivateKey, error)
func (*InMemoryCertificateStore) StoreCert ¶
func (s *InMemoryCertificateStore) StoreCert(name string, resp CertResponse)
type KnativeServing ¶
type KnativeServing struct {
// contains filtered or unexported fields
}
func (KnativeServing) IsInstalled ¶
func (r KnativeServing) IsInstalled() (bool, error)
func (KnativeServing) UpdateControllerToUseHostCAs ¶
func (r KnativeServing) UpdateControllerToUseHostCAs() error
UpdateControllerToUseHostCAs updates Knative Serving controller to pick up host CA certificates (which includes registry CA certificate) so that controller can resolve image digests by communicating with the registry. Eventually this would not be necessary as Knative Build will provide image digests as part of build result.
type PasswordGenerator ¶
type PasswordGenerator struct{}
func NewPasswordGenerator ¶
func NewPasswordGenerator() PasswordGenerator
func (PasswordGenerator) Generate ¶
func (PasswordGenerator) Generate(params PasswordParams) (string, error)
type PasswordParams ¶
type PasswordParams struct {
Length int `yaml:"length"`
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry(coreClient kubernetes.Interface, namespace string, logger Logger) Registry
type SSLDirConfig ¶
type SSLDirConfig struct {
// contains filtered or unexported fields
}
func NewSSLDirConfig ¶
func NewSSLDirConfig() SSLDirConfig
func (SSLDirConfig) ContainsEnvVar ¶
func (c SSLDirConfig) ContainsEnvVar(envs []corev1.EnvVar) bool
func (SSLDirConfig) DockerVolume ¶ added in v0.0.6
func (c SSLDirConfig) DockerVolume() corev1.Volume
func (SSLDirConfig) DockerVolumeMount ¶ added in v0.0.6
func (c SSLDirConfig) DockerVolumeMount(readOnly bool) corev1.VolumeMount
func (SSLDirConfig) EnvVar ¶
func (c SSLDirConfig) EnvVar() corev1.EnvVar
func (SSLDirConfig) Volume ¶
func (c SSLDirConfig) Volume() corev1.Volume
func (SSLDirConfig) VolumeMount ¶
func (c SSLDirConfig) VolumeMount(readOnly bool) corev1.VolumeMount
Click to show internal directories.
Click to hide internal directories.