organizations

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 12 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 struct {
	// contains filtered or unexported fields
}

func New

func New(client client.Client, namespace string) *Client

func (*Client) Get added in v0.2.5

func (c *Client) Get(ctx context.Context, name string) (*generated.Organization, error)

func (*Client) GetMetadata added in v0.2.0

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

GetMetadata retrieves the organization metadata. Clients should consult at least the Active status before doing anything with the organization.

func (*Client) List

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

func (*Client) Update added in v0.2.5

func (c *Client) Update(ctx context.Context, name string, request *generated.Organization) error

type Meta added in v0.2.0

type Meta struct {
	// Name is the organization's Kubernetes name, so a higher level resource
	// can reference it.
	Name string

	// Namespace is the namespace that is provisioned by the organization.
	// Should be usable set when the organization 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 organization.

Jump to

Keyboard shortcuts

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