Documentation ¶
Index ¶
- type Client
- func (cMock *Client) ApplyYAML(ctx context.Context, yamls ...[]byte) error
- func (cMock *Client) Create(ctx context.Context, obj client.Object) error
- func (cMock *Client) Delete(ctx context.Context, obj client.Object) error
- func (cMock *Client) DeleteYAML(ctx context.Context, yamls ...[]byte) error
- func (cMock *Client) Get(ctx context.Context, nn types.NamespacedName, obj client.Object) error
- func (cMock *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (cMock *Client) ListSecrets(ctx context.Context, namespace string, secretType corev1.SecretType) ([]corev1.Secret, error)
- func (cMock *Client) ReadLogs(ctx context.Context, namespace string, name string, writer io.WriteCloser, ...) error
- func (cMock *Client) Update(ctx context.Context, obj client.Object) error
- func (cMock *Client) ValidateObject(ctx context.Context, obj client.Object) error
- type ClientCallerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Calls map[string][]ClientCallerInfo MockApplyYAML func(ctx context.Context, yamls ...[]byte) error MockCreate func(ctx context.Context, obj client.Object) error MockDelete func(ctx context.Context, obj client.Object) error MockDeleteYAML func(ctx context.Context, yamls ...[]byte) error MockGet func(ctx context.Context, nn types.NamespacedName, obj client.Object) error MockList func(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error MockListSecrets func(ctx context.Context, namespace string, secretType corev1.SecretType) ([]corev1.Secret, error) MockReadLogs func(ctx context.Context, namespace string, name string, writer io.WriteCloser, opts *k8s.ReadLogsOptions) error MockUpdate func(ctx context.Context, obj client.Object) error MockValidateObject func(ctx context.Context, obj client.Object) error }
func (*Client) DeleteYAML ¶
func (*Client) List ¶
func (cMock *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
func (*Client) ListSecrets ¶
type ClientCallerInfo ¶
type ClientCallerInfo struct {
Args []any
}
Click to show internal directories.
Click to hide internal directories.