application

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationAPI

type ApplicationAPI interface {
	// List returns the list of Applications, paginated.
	// Pass nil to `cursor` to get the first page, or
	// previously returned `nextCursor` to get the next page.
	List(ctx context.Context, maxItems int64, cursor *string) (list []v1.ReadApplicationDetail, nextCursor *string, err error)
	Create(ctx context.Context, name string, clusterID v1.ClusterID) (app *v1.CreatedApplication, err error)
	Read(ctx context.Context, id v1.ApplicationID) (app *ApplicationDetail, err error)
	Update(ctx context.Context, id v1.ApplicationID, toVersion *int32) error
	Delete(ctx context.Context, id v1.ApplicationID) error
	Containers(ctx context.Context, id v1.ApplicationID) (list []Placement, err error)
}

type ApplicationDetail

type ApplicationDetail struct {
	ApplicationID          v1.ApplicationID
	Name                   string
	ClusterID              v1.ClusterID
	ClusterName            string
	ActiveVersion          *int32
	DesiredCount           *int32
	ScalingCooldownSeconds int32
}

type ApplicationOp

type ApplicationOp struct{ *v1.Client }

func NewApplicationOp

func NewApplicationOp(client *v1.Client) *ApplicationOp

func (*ApplicationOp) Containers

func (op *ApplicationOp) Containers(ctx context.Context, id v1.ApplicationID) (list []Placement, err error)

func (*ApplicationOp) Create

func (op *ApplicationOp) Create(ctx context.Context, name string, clusterID v1.ClusterID) (app *v1.CreatedApplication, err error)

func (*ApplicationOp) Delete

func (op *ApplicationOp) Delete(ctx context.Context, id v1.ApplicationID) error

func (*ApplicationOp) List

func (op *ApplicationOp) List(ctx context.Context, maxItems int64, cursor *string) (list []v1.ReadApplicationDetail, nextCursor *string, err error)

func (*ApplicationOp) Read

func (op *ApplicationOp) Read(ctx context.Context, id v1.ApplicationID) (app *ApplicationDetail, err error)

func (*ApplicationOp) Update

func (op *ApplicationOp) Update(ctx context.Context, id v1.ApplicationID, toVersion *int32) error

type Placement

type Placement struct {
	NodeID          string
	ContainersStats v1.ApplicationContainersStats
	Desired         v1.ApplicationPeekDesiredContainersResponse
}

Jump to

Keyboard shortcuts

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