draft

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2017 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppContext added in v0.6.0

type AppContext struct {
	// contains filtered or unexported fields
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient added in v0.6.0

func NewClient(cfg *ClientConfig) *Client

NewClient takes ClientConfig and returns a Client

func (*Client) Results added in v0.7.0

func (c *Client) Results() <-chan *rpc.UpSummary

func (*Client) Up

func (c *Client) Up(ctx context.Context, app *build.Context) error

func (*Client) Version

func (c *Client) Version(ctx context.Context) (*version.Version, error)

type ClientConfig added in v0.6.0

type ClientConfig struct {
	ServerAddr string
	ServerHost string
	Stdout     io.Writer
	Stderr     io.Writer
}

ClientConfig stores information about the draft server and where to send messages

and errors out

type DockerAuth added in v0.6.0

type DockerAuth map[string]RegistryAuth

DockerAuth is a container for the registry authentication credentials wrapped by the registry server name.

type RegistryAuth added in v0.6.0

type RegistryAuth struct {
	Username      string `json:"username"`
	Password      string `json:"password"`
	Email         string `json:"email"`
	RegistryToken string `json:"registrytoken"`
}

RegistryAuth is the registry authentication credentials

type RegistryConfig added in v0.6.0

type RegistryConfig struct {
	// Auth is the authorization token used to push images up to the registry.
	Auth string
	// URL is the URL of the registry (e.g. quay.io/myuser, docker.io/myuser, myregistry.azurecr.io)
	URL string
}

RegistryConfig specifies configuration for the image repository.

type Server added in v0.6.0

type Server struct {
	// contains filtered or unexported fields
}

Server is a draft Server.

func NewServer added in v0.6.0

func NewServer(cfg *ServerConfig) *Server

NewServer returns a draft.Server initialized with the provided configuration.

func (*Server) Serve added in v0.6.0

func (s *Server) Serve(ctx context.Context) error

func (*Server) Up added in v0.6.0

func (s *Server) Up(ctx context.Context, req *rpc.UpRequest) <-chan *rpc.UpSummary

Up handles incoming draft up requests and returns a stream of summaries or error.

Up implements rpc.UpHandler

type ServerConfig added in v0.6.0

type ServerConfig struct {
	ListenAddr     string
	IngressEnabled bool
	Basedomain     string // Basedomain is the basedomain used to construct the ingress rules
	Registry       *RegistryConfig
	Docker         *docker.Client
	Helm           helm.Interface
	Kube           k8s.Interface
}

ServerConfig specifies draft.Server configuration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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