projects

package
v0.2.40-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 15 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
}

Client wraps up project related management handling.

func New

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

New returns a new client with required parameters.

func (*Client) Create

func (c *Client) Create(ctx context.Context, organizationID string, request *openapi.ProjectWrite) (*openapi.ProjectRead, error)

Create creates the implicit project indentified by the JTW claims.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, organizationID, projectID string) error

Delete deletes the project.

func (*Client) Get added in v0.2.4

func (c *Client) Get(ctx context.Context, organizationID, projectID string) (*openapi.ProjectRead, error)

func (*Client) List

func (c *Client) List(ctx context.Context, organizationID string) (openapi.Projects, error)

func (*Client) Update added in v0.2.4

func (c *Client) Update(ctx context.Context, organizationID, projectID string, request *openapi.ProjectWrite) error

Jump to

Keyboard shortcuts

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