Documentation
¶
Index ¶
- type HelmClient
- type K8sResourceChecker
- type K8sResourcesClient
- type TestConfig
- type TestSuite
- func (ts *TestSuite) CheckAccessLabel()
- func (ts *TestSuite) CheckK8sResourceRemoved()
- func (ts *TestSuite) CheckK8sResourcesDeployed()
- func (ts *TestSuite) CleanUp()
- func (ts *TestSuite) CreateApplication(accessLabel string, skipInstallation bool)
- func (ts *TestSuite) DeleteApplication()
- func (ts *TestSuite) EnsureReleaseNotInstalling()
- func (ts *TestSuite) WaitForReleaseToInstall()
- func (ts *TestSuite) WaitForReleaseToUninstall()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelmClient ¶
type HelmClient interface { CheckReleaseStatus(rlsName string) (*rls.GetReleaseStatusResponse, error) CheckReleaseExistence(name string) (bool, error) }
func NewHelmClient ¶
func NewHelmClient(host string) HelmClient
type K8sResourceChecker ¶
type K8sResourceChecker struct {
// contains filtered or unexported fields
}
func NewK8sChecker ¶
func NewK8sChecker(client K8sResourcesClient, appName string) *K8sResourceChecker
type K8sResourcesClient ¶
type K8sResourcesClient interface { GetDeployment(name string, options v1.GetOptions) (interface{}, error) GetService(name string, options v1.GetOptions) (interface{}, error) GetIngress(name string, options v1.GetOptions) (interface{}, error) GetRole(name string, options v1.GetOptions) (interface{}, error) GetRoleBinding(name string, options v1.GetOptions) (interface{}, error) CreateDummyApplication(name string, accessLabel string, skipInstallation bool) (*v1alpha1.Application, error) DeleteApplication(name string, options *v1.DeleteOptions) error GetApplication(name string, options v1.GetOptions) (*v1alpha1.Application, error) }
func NewK8sResourcesClient ¶
func NewK8sResourcesClient(namespace string) (K8sResourcesClient, error)
type TestConfig ¶
func ReadConfig ¶
func ReadConfig() (TestConfig, error)
type TestSuite ¶
type TestSuite struct {
// contains filtered or unexported fields
}
func NewTestSuite ¶
func (*TestSuite) CheckAccessLabel ¶
func (ts *TestSuite) CheckAccessLabel()
func (*TestSuite) CheckK8sResourceRemoved ¶
func (ts *TestSuite) CheckK8sResourceRemoved()
func (*TestSuite) CheckK8sResourcesDeployed ¶
func (ts *TestSuite) CheckK8sResourcesDeployed()
func (*TestSuite) CreateApplication ¶
func (*TestSuite) DeleteApplication ¶
func (ts *TestSuite) DeleteApplication()
func (*TestSuite) EnsureReleaseNotInstalling ¶
func (ts *TestSuite) EnsureReleaseNotInstalling()
func (*TestSuite) WaitForReleaseToInstall ¶
func (ts *TestSuite) WaitForReleaseToInstall()
func (*TestSuite) WaitForReleaseToUninstall ¶
func (ts *TestSuite) WaitForReleaseToUninstall()
Click to show internal directories.
Click to hide internal directories.