kubernetes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserIDAnnotationKey = "hakoniwa.aplulu.com/user-id"
	ManagedByLabelKey   = "app.kubernetes.io/managed-by"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(logger *slog.Logger) (*Client, error)

func (*Client) CreateInstancePod

func (c *Client) CreateInstancePod(ctx context.Context, instance *model.Instance, templateContent []byte) error

func (*Client) DeletePod

func (c *Client) DeletePod(ctx context.Context, podName string) error

func (*Client) GetPodIP

func (c *Client) GetPodIP(ctx context.Context, podName string) (string, error)

func (*Client) GetPodStatus

func (c *Client) GetPodStatus(ctx context.Context, podName string) (model.InstanceStatus, string, error)

func (*Client) ListInstancePods

func (c *Client) ListInstancePods(ctx context.Context) ([]*model.Instance, error)

Jump to

Keyboard shortcuts

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