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
}
AppContext contains state information carried across the various draft stage boundaries.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the draft grpc client used to communicate with draftd
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
Results returns the summary of events from an invocation of `draft up`
type ClientConfig ¶ added in v0.6.0
type ClientConfig struct { ServerAddr string ServerHost string Stdout io.Writer Stderr io.Writer UseTLS bool TLSConfig *tls.Config }
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.
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 UseTLS bool TLSConfig *tls.Config Storage storage.Store }
ServerConfig specifies draft.Server configuration.