allocations

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNamespace = goerrors.New("unable to resolve project namespace")
)

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) Delete

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

func (*Client) Get

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

type SyncClient added in v1.12.0

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

func NewSync added in v1.12.0

func NewSync(client client.Client, namespace string, mutex *sync.Mutex) *SyncClient

func (*SyncClient) Create added in v1.12.0

func (c *SyncClient) Create(ctx context.Context, organizationID, projectID string, request *openapi.AllocationWrite) (*openapi.AllocationRead, error)

func (*SyncClient) Update added in v1.12.0

func (c *SyncClient) Update(ctx context.Context, organizationID, projectID, allocationID string, request *openapi.AllocationWrite) (*openapi.AllocationRead, error)

Jump to

Keyboard shortcuts

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