controlplane

package
v0.3.61 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrResourceDeleting is raised when the resource is being deleted.
	ErrResourceDeleting = goerrors.New("resource is being deleted")

	// ErrNamespaceUnset is raised when the namespace hasn't been created
	// yet.
	ErrNamespaceUnset = goerrors.New("resource namespace is unset")

	// ErrApplicationBundle is raised when no suitable application
	// bundle is found.
	ErrApplicationBundle = goerrors.New("no application bundle found")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps up control plane related management handling.

func NewClient

func NewClient(client client.Client) *Client

NewClient returns a new client with required parameters.

func (*Client) Create

func (c *Client) Create(ctx context.Context, request *generated.ControlPlane) error

Create creates a control plane.

func (*Client) Delete

Delete deletes the control plane.

func (*Client) Get

Get returns the control plane.

func (*Client) GetMetadata

func (c *Client) GetMetadata(ctx context.Context, name string) (*Meta, error)

GetMetadata retrieves the control plane metadata.

func (*Client) GetOrCreateMetadata

func (c *Client) GetOrCreateMetadata(ctx context.Context, name string) (*Meta, error)

func (*Client) List

func (c *Client) List(ctx context.Context) ([]*generated.ControlPlane, error)

List returns all control planes.

func (*Client) Update

Update implements read/modify/write for the control plane.

type Meta

type Meta struct {
	// Project is the owning project's metadata.
	Project *project.Meta

	// Name is the project's Kubernetes name, so a higher level resource
	// can reference it.
	Name string

	// Namespace is the namespace that is provisioned by the control plane.
	// Should be usable and set when the project is active.
	Namespace string

	// Deleting tells us if we should allow new child objects to be created
	// in this resource's namespace.
	Deleting bool
}

Meta describes the control plane.

Jump to

Keyboard shortcuts

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