server

package
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultAgentPort     = defaultAgentPort
	DefaultAgentImage    = defaultAgentImage
	DefaultBuildkitImage = defaultBuildkitImage
)

Functions

This section is empty.

Types

type Config

type Config struct {
	AgentImage        string `usage:"Image to run the agent w/ missing tag inferred from version"`
	AgentPort         int    `usage:"Port that the agent will listen on" default:"1233"`
	BuildkitImage     string `usage:"BuildKit image for running buildkitd" default:"docker.io/moby/buildkit:v0.8.1"`
	BuildkitNamespace string `usage:"BuildKit namespace in containerd (not 'k8s.io')" default:"buildkit"`
	BuildkitPort      int    `usage:"BuildKit service port" default:"1234"`
	BuildkitSocket    string `usage:"BuildKit socket address" default:"unix:///run/buildkit/buildkitd.sock"`
	ContainerdSocket  string `usage:"Containerd socket address" default:"/run/k3s/containerd/containerd.sock"`
}

func (*Config) GetAgentImage

func (c *Config) GetAgentImage() (string, error)

func (*Config) GetBuildkitImage

func (c *Config) GetBuildkitImage() (string, error)

func (*Config) Interface

func (c *Config) Interface(ctx context.Context, config *client.Config) (*Interface, error)

type Interface

type Interface struct {
	Kubernetes     *client.Interface
	Buildkit       *buildkit.Client
	Containerd     *containerd.Client
	RuntimeService criv1.RuntimeServiceClient
	ImageService   criv1.ImageServiceClient
	// contains filtered or unexported fields
}

func (*Interface) Close

func (i *Interface) Close()

Close the Interface connections to various backends.

func (*Interface) List

List images server-side impl

func (*Interface) Pull

Pull server-side impl

func (*Interface) PullProgress

PullProgress server-side impl

func (*Interface) Push

Push server-side impl

func (*Interface) PushProgress

PushProgress server-side impl

func (*Interface) Remove

Remove image server-side impl

func (*Interface) Status

Status of an image server-side impl (unused)

func (*Interface) Tag

Tag image server-side impl, adapted from containerd's `ctr tag` implementation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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