Documentation ¶
Index ¶
- Constants
- func PrintConfigEnv()
- type CheckFunc
- type Config
- 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) 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) KubectlApply(filename string) error
- func (u *TestUtils) KubectlDelete(filename string) error
- func (u *TestUtils) KubectlGetAllCertificates() (map[string]interface{}, 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 IssuerConfig ¶
type IssuerConfig struct { Name string `json:"name"` Type string `json:"type"` AutoRegistration bool `json:"autoRegistration"` Server string `json:"server,omitempty"` Email string `json:"email,omitempty"` Namespace string TmpManifestFilename string Domain string }
func (*IssuerConfig) CreateTempManifest ¶
func (p *IssuerConfig) CreateTempManifest(basePath string, manifestTemplate *template.Template) error
func (*IssuerConfig) DeleteTempManifest ¶
func (p *IssuerConfig) DeleteTempManifest()
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) AwaitIssuerDeleted ¶
func (*TestUtils) AwaitIssuerReady ¶
func (*TestUtils) AwaitKubectlGetCRDs ¶
func (*TestUtils) AwaitState ¶
func (*TestUtils) AwaitWithTimeout ¶
func (*TestUtils) KubectlApply ¶
func (*TestUtils) KubectlDelete ¶
func (*TestUtils) KubectlGetAllCertificates ¶
func (*TestUtils) LogVerbose ¶
Click to show internal directories.
Click to hide internal directories.