configuration

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

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 BackdropFromProto(b *api.Backdrop) Backdrop

func EmptyBackdrop added in v0.10.0

func EmptyBackdrop() Backdrop

func MergeBackdrops added in v0.10.0

func MergeBackdrops(first, second Backdrop) Backdrop

func (Backdrop) ToProto added in v0.10.0

func (b Backdrop) ToProto() *api.Backdrop

func (Backdrop) Validate added in v0.10.0

func (b Backdrop) Validate() error

type Client added in v0.10.0

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Cleanup added in v0.10.0

func (c *Client) Cleanup()

func (*Client) GetBackdrop added in v0.10.0

func (c *Client) GetBackdrop(alias string) (Backdrop, error)

func (*Client) Init added in v0.10.0

func (c *Client) Init() (plugin.Config, error)

func (*Client) ListBackdrops added in v0.10.0

func (c *Client) ListBackdrops() ([]Backdrop, error)

func (*Client) Metadata added in v0.10.0

func (c *Client) Metadata() plugin.Metadata

func (*Client) Type added in v0.10.0

func (c *Client) Type() plugin.Type

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

type File struct {
	FilePath string
	Contents []byte
}

func FileFromProto added in v0.10.0

func FileFromProto(f *api.File) File

func (File) ToProto added in v0.10.0

func (f File) ToProto() *api.File

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

type InvalidError struct {
	Name    string
	Message string
}

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 (s *Server) GetPluginMetadata(_ context.Context, _ *empty.Empty) (*pluginapi.PluginMetadata, error)

func (*Server) InitPlugin added in v0.10.0

func (*Server) ListBackdrops added in v0.10.0

func (s *Server) ListBackdrops(_ context.Context, _ *empty.Empty) (*api.ListBackdropsResponse, error)

func (*Server) ResetPlugin added in v0.10.0

func (s *Server) ResetPlugin(_ context.Context, _ *empty.Empty) (*empty.Empty, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL