server

package
v0.1.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 27 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 Agent

type Agent struct {
	Config
	Tlscacert string `usage:"ca certificate to verify clients"`
	Tlscert   string `usage:"server tls certificate"`
	Tlskey    string `usage:"server tls key"`
}

func (*Agent) Run

func (a *Agent) Run(ctx context.Context) error

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) (*images.Server, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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