Documentation ¶
Index ¶
- type Client
- type K8sClient
- func (k *K8sClient) Apply(ctx context.Context, namespace string, config string) error
- func (k *K8sClient) CreateNamespace(ctx context.Context, name string) error
- func (k *K8sClient) DeleteNamespace(ctx context.Context, name string) error
- func (k *K8sClient) NamespaceExists(ctx context.Context, name string) bool
- type MockClient
- func (m *MockClient) Apply(ctx context.Context, namespace, config string) error
- func (m *MockClient) CreateNamespace(ctx context.Context, name string) error
- func (m *MockClient) DeleteNamespace(ctx context.Context, name string) error
- func (m *MockClient) NamespaceExists(ctx context.Context, name string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sClient ¶
type K8sClient struct {
// contains filtered or unexported fields
}
func (*K8sClient) CreateNamespace ¶
func (*K8sClient) DeleteNamespace ¶
type MockClient ¶
func NewMockClient ¶
func NewMockClient() *MockClient
func (*MockClient) Apply ¶
func (m *MockClient) Apply(ctx context.Context, namespace, config string) error
func (*MockClient) CreateNamespace ¶
func (m *MockClient) CreateNamespace(ctx context.Context, name string) error
func (*MockClient) DeleteNamespace ¶
func (m *MockClient) DeleteNamespace(ctx context.Context, name string) error
func (*MockClient) NamespaceExists ¶
func (m *MockClient) NamespaceExists(ctx context.Context, name string) bool
Click to show internal directories.
Click to hide internal directories.