Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Handshake = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "SKAFFOLD_BUILDER_PLUGIN",
MagicCookieValue: "hello",
}
Handshake is a common handshake that is shared by plugin and host.
View Source
var PluginMap = map[string]plugin.Plugin{ "docker": &BuilderPlugin{}, }
PluginMap is a map of all accepted plugins
Functions ¶
This section is empty.
Types ¶
type BuilderPlugin ¶
type BuilderPlugin struct {
Impl PluginBuilder
}
BuilderPlugin is the implementation of the hashicorp plugin.Plugin interface
type BuilderRPC ¶
type BuilderRPC struct {
// contains filtered or unexported fields
}
BuilderRPC is an implementation of an rpc client
func (*BuilderRPC) Init ¶
func (b *BuilderRPC) Init(opts *config.SkaffoldOptions, env *latest.ExecutionEnvironment)
func (*BuilderRPC) Labels ¶
func (b *BuilderRPC) Labels() map[string]string
type BuilderRPCServer ¶
type BuilderRPCServer struct {
Impl PluginBuilder
}
BuilderRPCServer is the RPC server that BuilderRPC talks to, conforming to the requirements of net/rpc
func (*BuilderRPCServer) Build ¶
func (s *BuilderRPCServer) Build(b BuildArgs, resp *[]build.Artifact) error
func (*BuilderRPCServer) Init ¶
func (s *BuilderRPCServer) Init(args InitArgs, resp *interface{}) error
type InitArgs ¶
type InitArgs struct {
Opts *config.SkaffoldOptions
Env *latest.ExecutionEnvironment
}
InitArgs are args passed via rpc to the builder plugin on Init()
type PluginBuilder ¶
type PluginBuilder interface {
Init(opts *config.SkaffoldOptions, env *latest.ExecutionEnvironment)
build.Builder
}
Click to show internal directories.
Click to hide internal directories.