conf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Track

func Track(ctx context.Context, file string, done chan<- os.Signal)

Track will sha1 sum the contents of file and if it differs from previous runs, will SIGHUP ourselves so we exist with status code 2, which in turn will systemd restart us again.

Types

type Config

type Config struct {
	Services []*Service
}

func Parse

func Parse(doc []byte) (*Config, error)

type Service

type Service struct {
	Name       string
	User       string
	Repository string
	Branch     string
	URLs       map[string]int
	Ports      []string
	Git        *git.Git         `toml:"-"`
	Compose    *compose.Compose `toml:"-"`
	// contains filtered or unexported fields
}

func (*Service) InitGitAndCompose

func (s *Service) InitGitAndCompose(dir string) error

func (*Service) PublicKeys

func (s *Service) PublicKeys() ([]ssh.PublicKey, error)

PublicKeys parses the public keys in the ssh/ directory of the repository.

func (*Service) Track

func (s *Service) Track(ctx context.Context, duration time.Duration)

Jump to

Keyboard shortcuts

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