Documentation
¶
Index ¶
- func New() pb.BuilderServer
- type BuilderPbServer
- type BuilderServer
- func (b *BuilderServer) Add(r *v1.AddRequest, srv v1.Builder_AddServer) error
- func (b *BuilderServer) Commit(r *v1.CommitRequest, srv v1.Builder_CommitServer) error
- func (b *BuilderServer) Config(r *v1.ConfigRequest, srv v1.Builder_ConfigServer) error
- func (b *BuilderServer) Copy(r *v1.CopyRequest, srv v1.Builder_CopyServer) error
- func (b *BuilderServer) From(ctx context.Context, r *v1.FromRequest) (*v1.FromResponse, error)
- func (b *BuilderServer) Run(r *v1.RunRequest, srv v1.Builder_RunServer) error
- type ContainerState
- type ContainerStateStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() pb.BuilderServer
Types ¶
type BuilderPbServer ¶
type BuilderPbServer interface {
Send(*v1.OutputResponse) error
}
type BuilderServer ¶
type BuilderServer struct {
pb.UnimplementedBuilderServer
// contains filtered or unexported fields
}
func (*BuilderServer) Add ¶
func (b *BuilderServer) Add(r *v1.AddRequest, srv v1.Builder_AddServer) error
Add
func (*BuilderServer) Commit ¶
func (b *BuilderServer) Commit(r *v1.CommitRequest, srv v1.Builder_CommitServer) error
Add
func (*BuilderServer) Config ¶
func (b *BuilderServer) Config(r *v1.ConfigRequest, srv v1.Builder_ConfigServer) error
Add
func (*BuilderServer) Copy ¶
func (b *BuilderServer) Copy(r *v1.CopyRequest, srv v1.Builder_CopyServer) error
Copy
func (*BuilderServer) From ¶
func (b *BuilderServer) From(ctx context.Context, r *v1.FromRequest) (*v1.FromResponse, error)
From
func (*BuilderServer) Run ¶
func (b *BuilderServer) Run(r *v1.RunRequest, srv v1.Builder_RunServer) error
Add
type ContainerState ¶
type ContainerState interface {
Name() string
Lines() []string
// TODO: We will want to replace this with a more op/args model to translate better between more types of container file formats
AddLine(line string)
LogLine(line string) string
AddDependency(name string)
Dependencies() []string
Ignore() []string
}
type ContainerStateStore ¶
type ContainerStateStore interface {
// Put a new container state
Put(string, ContainerState) error
// Get an existing container state
Get(string) (ContainerState, error)
// Has - returns true if container exists in this state store
Has(string) bool
// Compile - Compiles the given container and it's dependencies into a ContainerFile/Dockerfile
Compile(string, []string) ([]string, error)
}
Click to show internal directories.
Click to hide internal directories.