image

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 19 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(k8sClient kubernetes.Interface) Client

func (Client) Config

func (c Client) Config(ctx context.Context, creds Creds, imageRef string) (Config, error)

func (Client) Delete

func (c Client) Delete(ctx context.Context, creds Creds, imageRef string, tagsToDelete ...string) error

func (Client) Push

func (c Client) Push(ctx context.Context, creds Creds, repoRef string, zipReader io.Reader, tags ...string) (string, error)

type Config

type Config struct {
	Labels       map[string]string
	User         string
	ExposedPorts []int32
}

type Creds

type Creds struct {
	Namespace string
	// At most one of SecretNames and ServiceAccountName should be set.
	// If both unset, the fallback auth approach will be used.
	SecretNames        []string
	ServiceAccountName string
}

Jump to

Keyboard shortcuts

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