Documentation ¶
Index ¶
- type Client
- type FakeClient
- func (f *FakeClient) ApplyPackage(ctx context.Context, contents map[string]string, ...) error
- func (f *FakeClient) GetContent(ctx context.Context, packageName, clusterName string) (map[string]string, error)
- func (f *FakeClient) GetRetryCount(ctx context.Context, packageName, clusterName string) (int, error)
- func (f *FakeClient) SetError(ctx context.Context, packageName, clusterName string, err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // ApplyPackage create/updates a porch package and "auto-approves" it ApplyPackage(ctx context.Context, contents map[string]string, packageName, clusterName string) error }
func NewClient ¶
func NewClient(logger logr.Logger, service *packageservice.PorchPackageService, restClient approve.K8sRestClient) Client
type FakeClient ¶
type FakeClient struct {
// contains filtered or unexported fields
}
func NewFakeClient ¶
func NewFakeClient() *FakeClient
func (*FakeClient) ApplyPackage ¶
func (*FakeClient) GetContent ¶
func (*FakeClient) GetRetryCount ¶
Click to show internal directories.
Click to hide internal directories.