Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Capsule ¶
type Capsule struct {
CapsuleID string
Image string
ContainerSettings *capsule.ContainerSettings
Ports []uint32
Replicas uint32
Volumes map[string]string
Network *capsule.Network
ConfigFiles []*capsule.ConfigFile
Namespace string
Metadata map[string]string
JWTMethod *proxy.JWTMethod
RegistryAuth *RegistryAuth
}
type Gateway ¶
type Gateway interface {
UpsertCapsule(ctx context.Context, capsuleName string, c *Capsule) error
DeleteCapsule(ctx context.Context, capsuleName string) error
ListInstances(ctx context.Context, capsuleName string) (iterator.Iterator[*capsule.Instance], uint64, error)
RestartInstance(ctx context.Context, capsuleName, instanceID string) error
Logs(ctx context.Context, capsuleName, instanceID string, follow bool) (iterator.Iterator[*capsule.Log], error)
ListCapsuleMetrics(ctx context.Context) (iterator.Iterator[*capsule.InstanceMetrics], error)
CreateVolume(ctx context.Context, id string) error
// ImageExistsNatively checks if the image exists natively in the cluster. The repo digest is returned if found.
ImageExistsNatively(ctx context.Context, image string) (bool, string, error)
}
type RegistryAuth ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.