Documentation ¶
Index ¶
- Constants
- func PrintConfigEnv()
- type CheckFunc
- type Config
- type ExternalAccountBinding
- type IssuerConfig
- type TestUtils
- func (u *TestUtils) Await(msg string, check CheckFunc) error
- func (u *TestUtils) AwaitCertDeleted(names ...string) error
- func (u *TestUtils) AwaitCertError(names ...string) error
- func (u *TestUtils) AwaitCertReady(names ...string) error
- func (u *TestUtils) AwaitCertRevocationApplied(name string) error
- func (u *TestUtils) AwaitCertRevoked(names ...string) error
- func (u *TestUtils) AwaitIssuerDeleted(names ...string) error
- func (u *TestUtils) AwaitIssuerReady(names ...string) error
- func (u *TestUtils) AwaitKubectlGetCRDs(crds ...string) error
- func (u *TestUtils) AwaitState(resourceName, expectedState string, names ...string) error
- func (u *TestUtils) AwaitWithTimeout(msg string, check CheckFunc, timeout time.Duration) error
- func (u *TestUtils) CheckCertificatePrivateKey(secretName string, algorithm x509.PublicKeyAlgorithm, keySize int) error
- func (u *TestUtils) KubectlApply(filename string) error
- func (u *TestUtils) KubectlDelete(filename string) error
- func (u *TestUtils) KubectlGetAllCertificates() (map[string]interface{}, error)
- func (u *TestUtils) KubectlGetAllCertificatesPlain() (string, error)
- func (u *TestUtils) KubectlGetAllIssuers() (string, error)
- func (u *TestUtils) KubectlGetSecret(name string) (*corev1.Secret, error)
- func (u *TestUtils) KubectlPlain(cmdline string) (string, error)
- func (u *TestUtils) LogVerbose(output string)
Constants ¶
View Source
const STATE_DELETED = "~DELETED~"
Variables ¶
This section is empty.
Functions ¶
func PrintConfigEnv ¶
func PrintConfigEnv()
Types ¶
type Config ¶
type Config struct { Issuers []*IssuerConfig `json:"issuers"` KubeConfig string Namespace string DNSKubeConfig string DNSDomain string Utils *TestUtils }
func InitConfig ¶
func InitConfig() *Config
func LoadConfig ¶
type ExternalAccountBinding ¶ added in v0.12.0
type IssuerConfig ¶
type IssuerConfig struct { Name string `json:"name"` Type string `json:"type"` AutoRegistration bool `json:"autoRegistration"` Server string `json:"server,omitempty"` PrecheckNameservers []string `json:"precheckNameservers,omitempty"` Email string `json:"email,omitempty"` ExternalAccountBinding *ExternalAccountBinding `json:"externalAccountBinding,omitempty"` SkipDNSChallengeValidation bool `json:"skipDNSChallengeValidation,omitempty"` PrivateKey string `json:"privateKey,omitempty"` SkipRevokeWithRenewal bool `json:"skipRevokeWithRenewal,omitempty"` Namespace string Domain string }
func (*IssuerConfig) CreateTempManifest ¶
func (p *IssuerConfig) CreateTempManifest(name, templateContent string) (string, error)
func (*IssuerConfig) DeleteTempManifest ¶
func (p *IssuerConfig) DeleteTempManifest(filename string)
type TestUtils ¶
type TestUtils struct { AwaitTimeout time.Duration PollingPeriod time.Duration Namespace string Verbose bool }
func CreateDefaultTestUtils ¶
func CreateDefaultTestUtils() *TestUtils
func (*TestUtils) AwaitCertDeleted ¶
func (*TestUtils) AwaitCertError ¶
func (*TestUtils) AwaitCertReady ¶
func (*TestUtils) AwaitCertRevocationApplied ¶ added in v0.12.0
func (*TestUtils) AwaitCertRevoked ¶ added in v0.12.0
func (*TestUtils) AwaitIssuerDeleted ¶
func (*TestUtils) AwaitIssuerReady ¶
func (*TestUtils) AwaitKubectlGetCRDs ¶
func (*TestUtils) AwaitState ¶
func (*TestUtils) AwaitWithTimeout ¶
func (*TestUtils) CheckCertificatePrivateKey ¶ added in v0.13.0
func (*TestUtils) KubectlApply ¶
func (*TestUtils) KubectlDelete ¶
func (*TestUtils) KubectlGetAllCertificates ¶
func (*TestUtils) KubectlGetAllCertificatesPlain ¶ added in v0.16.0
func (*TestUtils) KubectlGetAllIssuers ¶ added in v0.16.0
func (*TestUtils) KubectlGetSecret ¶ added in v0.12.0
func (*TestUtils) KubectlPlain ¶ added in v0.16.0
func (*TestUtils) LogVerbose ¶
Click to show internal directories.
Click to hide internal directories.