Documentation
¶
Index ¶
- Constants
- type Backdrop
- type Client
- type Configuration
- type File
- type FilesConfig
- type InvalidError
- type Server
- func (s *Server) GetBackdrop(_ context.Context, request *api.GetBackdropRequest) (*api.GetBackdropResponse, error)
- func (s *Server) GetPluginMetadata(_ context.Context, _ *empty.Empty) (*pluginapi.PluginMetadata, error)
- func (s *Server) InitPlugin(_ context.Context, _ *empty.Empty) (*pluginapi.InitPluginResponse, error)
- func (s *Server) ListBackdrops(_ context.Context, _ *empty.Empty) (*api.ListBackdropsResponse, error)
- func (s *Server) ResetPlugin(_ context.Context, _ *empty.Empty) (*empty.Empty, error)
Constants ¶
View Source
const Type pluginType = "configuration"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backdrop ¶ added in v0.10.0
type Backdrop struct {
Name string
Aliases []string
Runtime string
Builder string
ContainerConfig runtime.ContainerConfig
BuildConfig builder.BuildConfig
RequiredFiles FilesConfig
}
func BackdropFromProto ¶ added in v0.10.0
func EmptyBackdrop ¶ added in v0.10.0
func EmptyBackdrop() Backdrop
func MergeBackdrops ¶ added in v0.10.0
type Client ¶ added in v0.10.0
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetBackdrop ¶ added in v0.10.0
func (*Client) ListBackdrops ¶ added in v0.10.0
type Configuration ¶
type Configuration interface {
dodo.Plugin
ListBackdrops() ([]Backdrop, error)
GetBackdrop(name string) (Backdrop, error)
}
func NewGRPCClient ¶
func NewGRPCClient(conn grpc.ClientConnInterface) Configuration
type File ¶ added in v0.10.0
func FileFromProto ¶ added in v0.10.0
type FilesConfig ¶ added in v0.10.0
type FilesConfig []File
func FilesConfigFromProto ¶ added in v0.10.0
func FilesConfigFromProto(f []*api.File) FilesConfig
func MergeFilesConfig ¶ added in v0.10.0
func MergeFilesConfig(first, second FilesConfig) FilesConfig
func (FilesConfig) ToProto ¶ added in v0.10.0
func (f FilesConfig) ToProto() []*api.File
type InvalidError ¶
func (InvalidError) Error ¶
func (e InvalidError) Error() string
type Server ¶ added in v0.10.0
type Server struct {
api.UnsafePluginServer
// contains filtered or unexported fields
}
func NewGRPCServer ¶
func NewGRPCServer(impl Configuration) *Server
func (*Server) GetBackdrop ¶ added in v0.10.0
func (s *Server) GetBackdrop(_ context.Context, request *api.GetBackdropRequest) (*api.GetBackdropResponse, error)
func (*Server) GetPluginMetadata ¶ added in v0.10.0
func (*Server) InitPlugin ¶ added in v0.10.0
func (*Server) ListBackdrops ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.