Documentation
¶
Index ¶
- type DockerCfg
- type DockerRegistry
- type Server
- func (srv Server) Create(in *pb.CreateRequest, stream pb.M8S_CreateServer) error
- func (srv Server) Describe(ctx context.Context, in *pb.DescribeRequest) (*pb.DescribeResponse, error)
- func (srv Server) DockerCfg(ctx context.Context, in *pb.DockerCfgRequest) (*pb.DockerCfgResponse, error)
- func (srv Server) Step(in *pb.StepRequest, stream pb.M8S_StepServer) error
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
CacheType string
CacheSize 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, cacheType, cacheSize 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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.