server

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: GPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache added in v0.5.0

type Cache struct {
	Directories []CacheDirectory
	Type        string
	Size        string
}

Cache decares all the cached paths with will be a path of the builds.

type CacheDirectory added in v0.5.0

type CacheDirectory struct {
	Name string
	Path string
}

CacheDirectory is used for caching a path on a pod.

type Input added in v0.5.0

type Input struct {
	Client    *kubernetes.Clientset
	Config    *rest.Config
	Token     string
	Namespace string
	DockerCfg string
	SSH       string
	Cache     InputCache
}

Input is used for passing configuration for the cli to the server component.

type InputCache added in v0.5.0

type InputCache struct {
	Directories string
	Type        string
	Size        string
}

InputCache is used as part of the input for the server.

type Server

type Server struct {
	Token      string
	Namespace  string
	DockerCfg  string
	SSHService string
	Cache      Cache
	// contains filtered or unexported fields
}

Server is the M8s server for running builds.

func New

func New(input Input) (Server, error)

New is used for returning a new M8s server.

func (Server) Create

func (srv Server) Create(in *pb.CreateRequest, stream pb.M8S_CreateServer) error

Create is used for creating a new environment.

func (Server) Describe

func (srv Server) Describe(ctx context.Context, in *pb.DescribeRequest) (*pb.DescribeResponse, error)

Describe returns details about the temporary environment.

func (Server) Step

func (srv Server) Step(in *pb.StepRequest, stream pb.M8S_StepServer) error

Step is used for defining a single "command" step

Directories

Path Synopsis
k8s
env

Jump to

Keyboard shortcuts

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