provider

package
v0.0.0-...-5f02759 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnitPath = "usr/lib/systemd/system"

Functions

func Phase

func Phase(ctx context.Context) string

Types

type DirUnix

type DirUnix struct {
	*emission.Emitter
	// contains filtered or unexported fields
}

func (*DirUnix) Realize

func (d *DirUnix) Realize(ctx context.Context) error

type Factory

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

func DefaultFactory

func DefaultFactory(emitter *emission.Emitter) *Factory

func New

func New(emitter *emission.Emitter) *Factory

func (*Factory) Get

func (f *Factory) Get(ac action.Action) Provider

Need to add provider switching for now defaults will work on all OSs we care about

func (*Factory) On

func (f *Factory) On(action string, phase string, call string) *Factory

Build phase map

func (*Factory) Register

func (f *Factory) Register(provider string, newFunc func(action.Action, map[string]string, *emission.Emitter) Provider) *Factory

Register Provider

type FileUnix

type FileUnix struct {
	*emission.Emitter
	// contains filtered or unexported fields
}

func (*FileUnix) Realize

func (f *FileUnix) Realize(ctx context.Context) error

type Options

type Options struct {
	OutputPath string
	TargetPath string
	WorkPath   string
	CachePath  string

	Secure   bool
	Restrict bool

	Owner string
	Group string

	Debug   bool
	Verbose bool
}

func Opts

func Opts(ctx context.Context) *Options

type Provider

type Provider interface {
	Realize(ctx context.Context) error
}

func NewDirUnix

func NewDirUnix(dir action.Action, phaseMap map[string]string, emitter *emission.Emitter) Provider

func NewFileUnix

func NewFileUnix(file action.Action, phaseMap map[string]string, emitter *emission.Emitter) Provider

func NewRequirementDefault

func NewRequirementDefault(req action.Action, phaseMap map[string]string, emitter *emission.Emitter) Provider

func NewServiceDefault

func NewServiceDefault(service action.Action, phaseMap map[string]string, emitter *emission.Emitter) Provider

func NewServiceSystemD

func NewServiceSystemD(service action.Action, phaseMap map[string]string, emitter *emission.Emitter) Provider

func NewSymLinkUnix

func NewSymLinkUnix(symlink action.Action, phaseMap map[string]string, emitter *emission.Emitter) Provider

func NewTagDefault

func NewTagDefault(tag action.Action, phaseMap map[string]string, emitter *emission.Emitter) Provider

func NewTemplateDefault

func NewTemplateDefault(template action.Action, phaseMap map[string]string, emitter *emission.Emitter) Provider

func NewZpkgDefault

func NewZpkgDefault(zpkg action.Action, phaseMap map[string]string, emitter *emission.Emitter) Provider

type RequirementDefault

type RequirementDefault struct {
	*emission.Emitter
	// contains filtered or unexported fields
}

func (*RequirementDefault) Realize

func (r *RequirementDefault) Realize(ctx context.Context) error

type ServiceDefault

type ServiceDefault struct {
	*emission.Emitter
	// contains filtered or unexported fields
}

func (*ServiceDefault) Realize

func (s *ServiceDefault) Realize(ctx context.Context) error

type ServiceSystemD

type ServiceSystemD struct {
	*emission.Emitter
	// contains filtered or unexported fields
}

func (*ServiceSystemD) Realize

func (s *ServiceSystemD) Realize(ctx context.Context) error

type SymLinkUnix

type SymLinkUnix struct {
	*emission.Emitter
	// contains filtered or unexported fields
}

func (*SymLinkUnix) Realize

func (s *SymLinkUnix) Realize(ctx context.Context) error

type TagDefault

type TagDefault struct {
	*emission.Emitter
	// contains filtered or unexported fields
}

func (*TagDefault) Realize

func (t *TagDefault) Realize(ctx context.Context) error

type TemplateDefault

type TemplateDefault struct {
	*emission.Emitter
	// contains filtered or unexported fields
}

func (*TemplateDefault) Realize

func (t *TemplateDefault) Realize(ctx context.Context) error

type ZpkgDefault

type ZpkgDefault struct {
	*emission.Emitter
	// contains filtered or unexported fields
}

func (*ZpkgDefault) Realize

func (z *ZpkgDefault) Realize(ctx context.Context) error

Jump to

Keyboard shortcuts

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