server

package
v0.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 License: GPL-3.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerCfg

type DockerCfg struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email"`
	Auth     string `json:"auth"`
}

DockerCfg is used mashalling Docker Configuration.

type DockerRegistry

type DockerRegistry struct {
	Registry string
	Username string
	Password string
	Email    string
	Auth     string
}

DockerRegistry contains Docker Hub credentials and registry information.

type Server

type Server struct {
	Token          string
	Namespace      string
	FilesystemSize string
	SSHService     string
	ApacheExporter int32
	Docker         DockerRegistry
	// contains filtered or unexported fields
}

Server is the M8s server for running builds.

func New

func New(client *kubernetes.Clientset, config *rest.Config, token, namespace, ssh, fs string, exporter int32, dockercfg DockerRegistry) (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) DockerCfg

func (srv Server) DockerCfg(ctx context.Context, in *pb.DockerCfgRequest) (*pb.DockerCfgResponse, error)

DockerCfg returns Docker credentials for pushing and pulling images.

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