confsys

package
v0.13.91 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: GPL-3.0 Imports: 13 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 {
	// contains filtered or unexported fields
}

func Instance added in v0.8.0

func Instance() *Service

func (*Service) GenerateWorkflowDescriptor

func (s *Service) GenerateWorkflowDescriptor(wfPath string, vars map[string]string) string

Returns a YAML file OR even a structure made of Roles or Nodes with: import() functions already computed and resolved vars inserted

func (*Service) GetComponentConfiguration added in v0.12.90

func (s *Service) GetComponentConfiguration(path string) (payload string, err error)

func (*Service) GetDefaultRepo added in v0.10.0

func (s *Service) GetDefaultRepo() (defaultRepo string, err error)

func (*Service) GetDefaultRevision added in v0.12.90

func (s *Service) GetDefaultRevision() (defaultRevision string, err error)

func (*Service) GetDefaults added in v0.12.90

func (s *Service) GetDefaults() map[string]string

maybe this one shouldn't exist at all, because vars should get inserted response: but not all of them! some vars will likely only get parsed at deployment time i.e. right before pushing TaskInfos

func (*Service) GetMesosFID added in v0.12.90

func (s *Service) GetMesosFID() (fidValue string, err error)

Retrieve Mesos Framework ID from Consul, or local file.

func (*Service) GetROSource

func (s *Service) GetROSource() configuration.ROSource

func (*Service) GetRepoDefaultRevisions added in v0.12.90

func (s *Service) GetRepoDefaultRevisions() (map[string]string, error)

func (*Service) GetReposPath added in v0.12.90

func (s *Service) GetReposPath() string

func (*Service) GetVars

func (s *Service) GetVars() map[string]string

func (*Service) NewDefaultRepo added in v0.10.0

func (s *Service) NewDefaultRepo(defaultRepo string) error

func (*Service) NewDefaultRevision added in v0.12.90

func (s *Service) NewDefaultRevision(defaultRevision string) error

func (*Service) NewMesosFID added in v0.12.90

func (s *Service) NewMesosFID(fidValue string) error

Persist Mesos Framework ID by saving to Consul, or to a local file.

func (*Service) NewRunNumber

func (s *Service) NewRunNumber() (runNumber uint32, err error)

func (*Service) RefreshRepositories

func (s *Service) RefreshRepositories()

Or maybe even "RefreshConfig" which will refresh all the things that happen to be runtime-refreshable

func (*Service) SetRepoDefaultRevisions added in v0.12.90

func (s *Service) SetRepoDefaultRevisions(defaultRevisions map[string]string) error

Jump to

Keyboard shortcuts

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