app

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 10 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 provides a domain-specific client for App entities

func NewClient

func NewClient(log *slog.Logger, client rpc.Client) *Client

NewClient creates a new App client from an RPC client

func (*Client) Create

func (c *Client) Create(ctx context.Context, name string) (*core_v1alpha.App, error)

Create creates a new app entity

func (*Client) Destroy

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

Destroy deletes an app by its name

func (*Client) GetById

func (c *Client) GetById(ctx context.Context, id entity.Id) (*core_v1alpha.App, error)

GetById retrieves an app by its ID

func (*Client) GetByName

func (c *Client) GetByName(ctx context.Context, name string) (*core_v1alpha.App, error)

GetByName retrieves an app by its name

func (*Client) List

func (c *Client) List(ctx context.Context) ([]*core_v1alpha.App, error)

List returns all apps

func (*Client) SetActiveVersion

func (c *Client) SetActiveVersion(ctx context.Context, appName, versionID string) error

SetActiveVersion updates the active version of an app

func (*Client) SetHost

func (c *Client) SetHost(ctx context.Context, appName, host string) error

SetHost sets the host for an app by creating/updating an http_route entity

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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