configuration

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

View Source
const Type pluginType = "configuration"

Variables

This section is empty.

Functions

func AssembleBackdropConfig

func AssembleBackdropConfig(m plugin.Manager, name string, overrides *core.Backdrop) (*core.Backdrop, error)

func FindBuildConfig

func FindBuildConfig(m plugin.Manager, name string, overrides *core.BuildInfo) (*core.BuildInfo, error)

func MergeBackdrop

func MergeBackdrop(target, source *core.Backdrop)

func MergeBuildInfo

func MergeBuildInfo(target, source *core.BuildInfo)

func NewGRPCServer

func NewGRPCServer(impl Configuration) configuration.PluginServer

func ValidateBackdrop

func ValidateBackdrop(b *core.Backdrop) error

func ValidateBuildInfo

func ValidateBuildInfo(b *core.BuildInfo) error

Types

type Configuration

type Configuration interface {
	dodo.Plugin

	ListBackdrops() ([]*core.Backdrop, error)
	GetBackdrop(string) (*core.Backdrop, error)
}

func NewGRPCClient

func NewGRPCClient(conn grpc.ClientConnInterface) Configuration

type InvalidError

type InvalidError struct {
	Name    string
	Message string
}

func (InvalidError) Error

func (e InvalidError) Error() string

type NotFoundError

type NotFoundError struct {
	Name   string
	Reason error
}

func (NotFoundError) Error

func (e NotFoundError) Error() string

Jump to

Keyboard shortcuts

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