engine

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 7 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
}

func NewClient

func NewClient(client dock.APIClient) *Client

func (*Client) CreateSecret

func (c *Client) CreateSecret(ctx context.Context, spec CreatingSecret) error

func (*Client) CreateSecretVersion

func (c *Client) CreateSecretVersion(
	ctx context.Context,
	secret ExistingSecret,
	version CreatingSecretVersion,
) (CreatedSecretVersion, error)

func (*Client) MapSecrets

func (c *Client) MapSecrets(ctx context.Context) (map[string]*ExistingSecret, error)

func (*Client) MapServicesBySecrets

func (c *Client) MapServicesBySecrets(ctx context.Context) (map[string][]swarm.Service, error)

MapServicesBySecrets maps services by using secrets. key = secret.file.name.

func (*Client) RemoveSecret

func (c *Client) RemoveSecret(ctx context.Context, id string) error

func (*Client) UpdateService

func (c *Client) UpdateService(ctx context.Context, service swarm.Service) error

type CreatedSecretVersion

type CreatedSecretVersion struct {
	ID   string
	Name string
}

type CreatingSecret

type CreatingSecret struct {
	Path  string
	Value []byte

	ExternalPath      string
	ExternalVersionID string
}

type CreatingSecretVersion

type CreatingSecretVersion struct {
	ExternalID string

	Value []byte
}

type ExistingSecret

type ExistingSecret struct {
	ID string

	Path         string
	ExternalPath string

	Versions []ExistingSecretVersion
	// contains filtered or unexported fields
}

func (*ExistingSecret) LatestVersion

func (v *ExistingSecret) LatestVersion() ExistingSecretVersion

type ExistingSecretVersion

type ExistingSecretVersion struct {
	ID string

	ExternalID string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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