service

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// Name of service.
	Name string
	// Path of service, command run inside this path.
	Path string
	// Command is the command to run with args.
	Command string
	// GoTemplate and Sprig functions are available.
	Env map[string]interface{}
	// EnvValues is a list of environment variables path from exported config.
	EnvValues []string `cfg:"env_values"`
	// Inherit environment variables, default is false.
	InheritEnv bool `cfg:"inherit_env"`
	// Filters is a function to filter stdout.
	Filters [][]byte
	// FiltersValues is a list of filter variables path from exported config.
	FiltersValues []string `cfg:"filters_values"`
	// contains filtered or unexported fields
}

func (*Service) GetEnv

func (s *Service) GetEnv(predefined map[string]interface{}, environ bool, envPaths []string) ([]string, error)

func (*Service) Register

func (s *Service) Register() error

func (*Service) SetFilters

func (s *Service) SetFilters()

type Services

type Services []Service

func (Services) Run

func (s Services) Run() error

Jump to

Keyboard shortcuts

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