Documentation ¶
Index ¶
- Constants
- func CopyRolesAndBindings(namespace string, clientset kubernetes.Interface)
- func CreatePodCreationPSP(namespace, pspName, serviceAccountName string, clientset kubernetes.Interface) error
- func CreateRandomNamespace(clientset kubernetes.Interface) string
- func DeleteNamespace(namespace string, clientset kubernetes.Interface) error
- func DeletePSP(name string, clientset kubernetes.Interface) error
- func EatsFailHandler(message string, callerSkip ...int)
- func ExposeAsService(clientset kubernetes.Interface, namespace, guid string, appPort int32, ...) string
- func GenerateGUID() string
- func GenerateKeyPair(name string) (string, string)
- func GenerateKeyPairDir(name, domain string) (string, []byte)
- func GetApplicationServiceAccount() string
- func GetEiriniAddress() string
- func GetEiriniDockerHubPassword() string
- func GetEiriniSystemNamespace() string
- func GetEiriniWorkloadsNamespace() string
- func GetKubeconfig() string
- func GetTelepresencePort() int
- func GetTelepresenceServiceName() string
- func NewContext(parent context.Context, name string) context.Context
- func NewWiremock() *wiremock.Wiremock
- func RequestServiceFn(namespace, serviceName string, port int32, requestPath string) func() (string, error)
- func RetryResolveHost(host, failureMessage string)
- func WriteTempFile(content []byte, fileName string) string
- type EATSFixture
- type Fixture
- type TestLogger
- type TestSink
Constants ¶
View Source
const DefaultApplicationServiceAccount = "eirini"
Variables ¶
This section is empty.
Functions ¶
func CopyRolesAndBindings ¶
func CopyRolesAndBindings(namespace string, clientset kubernetes.Interface)
func CreatePodCreationPSP ¶
func CreatePodCreationPSP(namespace, pspName, serviceAccountName string, clientset kubernetes.Interface) error
func CreateRandomNamespace ¶
func CreateRandomNamespace(clientset kubernetes.Interface) string
func DeleteNamespace ¶
func DeleteNamespace(namespace string, clientset kubernetes.Interface) error
func EatsFailHandler ¶
func ExposeAsService ¶
func GenerateGUID ¶
func GenerateGUID() string
func GenerateKeyPair ¶
func GenerateKeyPairDir ¶
GenerateKeyPairDir generates a key pair in a temporary folder, returning its path and the authority PEM. The two files will be called <name>.crt and <name>.key
func GetApplicationServiceAccount ¶
func GetApplicationServiceAccount() string
func GetEiriniAddress ¶
func GetEiriniAddress() string
func GetEiriniDockerHubPassword ¶
func GetEiriniDockerHubPassword() string
func GetEiriniSystemNamespace ¶
func GetEiriniSystemNamespace() string
func GetEiriniWorkloadsNamespace ¶
func GetEiriniWorkloadsNamespace() string
func GetKubeconfig ¶
func GetKubeconfig() string
func GetTelepresencePort ¶
func GetTelepresencePort() int
func GetTelepresenceServiceName ¶
func GetTelepresenceServiceName() string
func NewWiremock ¶
func RequestServiceFn ¶
func RetryResolveHost ¶
func RetryResolveHost(host, failureMessage string)
func WriteTempFile ¶
Types ¶
type EATSFixture ¶
type EATSFixture struct { Fixture Wiremock *wiremock.Wiremock DynamicClientset dynamic.Interface // contains filtered or unexported fields }
func NewEATSFixture ¶
func (*EATSFixture) GetEiriniHTTPClient ¶
func (f *EATSFixture) GetEiriniHTTPClient() *http.Client
func (*EATSFixture) GetEiriniWorkloadsNamespace ¶
func (f *EATSFixture) GetEiriniWorkloadsNamespace() string
func (*EATSFixture) GetNATSPassword ¶
func (f *EATSFixture) GetNATSPassword() string
func (*EATSFixture) SetUp ¶
func (f *EATSFixture) SetUp()
func (*EATSFixture) TearDown ¶
func (f *EATSFixture) TearDown()
type Fixture ¶
type Fixture struct { Clientset kubernetes.Interface Namespace string PspName string KubeConfigPath string Writer io.Writer // contains filtered or unexported fields }
func NewFixture ¶
func (*Fixture) CreateExtraNamespace ¶
func (*Fixture) NextAvailablePort ¶
type TestLogger ¶
func NewTestLogger ¶
func NewTestLogger(component string) *TestLogger
Source Files ¶
Click to show internal directories.
Click to hide internal directories.