porch

package
v0.0.0-...-dc977c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 (f *FakeClient) ApplyPackage(ctx context.Context, contents map[string]string, packageName, clusterName string) error

func (*FakeClient) GetContent

func (f *FakeClient) GetContent(ctx context.Context, packageName, clusterName string) (
	map[string]string, error)

func (*FakeClient) GetRetryCount

func (f *FakeClient) GetRetryCount(ctx context.Context, packageName, clusterName string) (int, error)

func (*FakeClient) SetError

func (f *FakeClient) SetError(ctx context.Context, packageName, clusterName string,
	err error) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL