Documentation ¶
Index ¶
- Variables
- type BuildArgs
- type BuilderPlugin
- type BuilderRPC
- func (b *BuilderRPC) Build(ctx context.Context, out io.Writer, tags tag.ImageTags, ...) ([]build.Artifact, error)
- func (b *BuilderRPC) DependenciesForArtifact(ctx context.Context, artifact *latest.Artifact) ([]string, error)
- func (b *BuilderRPC) Init(opts *config.SkaffoldOptions, env *latest.ExecutionEnvironment)
- func (b *BuilderRPC) Labels() map[string]string
- type BuilderRPCServer
- func (s *BuilderRPCServer) Build(b BuildArgs, resp *[]build.Artifact) error
- func (s *BuilderRPCServer) DependenciesForArtifact(d DependencyArgs, resp *[]string) error
- func (s *BuilderRPCServer) Init(args InitArgs, resp *interface{}) error
- func (s *BuilderRPCServer) Labels(args interface{}, resp *map[string]string) error
- type DependencyArgs
- type InitArgs
- type PluginBuilder
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{}, "bazel": &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) DependenciesForArtifact ¶ added in v0.24.0
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) DependenciesForArtifact ¶ added in v0.24.0
func (s *BuilderRPCServer) DependenciesForArtifact(d DependencyArgs, resp *[]string) error
func (*BuilderRPCServer) Init ¶
func (s *BuilderRPCServer) Init(args InitArgs, resp *interface{}) error
type DependencyArgs ¶ added in v0.24.0
DependencyArgs are args passed via rpc to the build plugin on DependencyForArtifact()
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.