server

package
v0.1.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K3sContainerdSocket   = "/run/k3s/containerd/containerd.sock"
	K3sContainerdVolume   = "/var/lib/rancher"
	StockContainerdSocket = "/run/containerd/containerd.sock"
	StockContainerdVolume = "/var/lib/containerd"
)

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.3"`
	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 on k3s \"/run/k3s/containerd/containerd.sock\")"`
	ContainerdVolume string `usage:"Containerd storage volume (default on k3s \"/var/lib/rancher\")"`
}

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