loader

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright © 2024 Daniele Rondina <geaaru@macaronios.org> See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2024 Daniele Rondina <geaaru@macaronios.org> See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2024 Daniele Rondina <geaaru@macaronios.org> See AUTHORS and LICENSE for the license details and contributors.

Copyright © 2024 Daniele Rondina <geaaru@macaronios.org> See AUTHORS and LICENSE for the license details and contributors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SshCInstance

type SshCInstance struct {
	Config         *specs.SshComposeConfig
	Logger         *log.SshCLogger
	Environments   []specs.SshCEnvironment
	SkipSync       bool
	FlagsDisabled  []string
	FlagsEnabled   []string
	GroupsEnabled  []string
	GroupsDisabled []string

	Remotes *specs.RemotesConfig
	// contains filtered or unexported fields
}

func NewSshCInstance

func NewSshCInstance(config *specs.SshComposeConfig) (*SshCInstance, error)

func (*SshCInstance) AddEnvironment

func (i *SshCInstance) AddEnvironment(env specs.SshCEnvironment)

func (*SshCInstance) AddFlagDisabled

func (i *SshCInstance) AddFlagDisabled(flag string)

func (*SshCInstance) AddFlagEnabled

func (i *SshCInstance) AddFlagEnabled(flag string)

func (*SshCInstance) ApplyCommand

func (i *SshCInstance) ApplyCommand(c *specs.SshCCommand, proj *specs.SshCProject, envs []string, varfiles []string) error

func (*SshCInstance) ApplyGroup

func (*SshCInstance) ApplyProject

func (i *SshCInstance) ApplyProject(projectName string) error

func (*SshCInstance) GetConfig

func (i *SshCInstance) GetConfig() *specs.SshComposeConfig

func (*SshCInstance) GetEntitiesByNodeName

func (i *SshCInstance) GetEntitiesByNodeName(name string) (*specs.SshCEnvironment, *specs.SshCProject, *specs.SshCGroup, *specs.SshCNode)

func (*SshCInstance) GetEnvByProjectName

func (i *SshCInstance) GetEnvByProjectName(name string) *specs.SshCEnvironment

func (*SshCInstance) GetEnvironments

func (i *SshCInstance) GetEnvironments() *[]specs.SshCEnvironment

func (*SshCInstance) GetFlagsDisabled

func (i *SshCInstance) GetFlagsDisabled() []string

func (*SshCInstance) GetFlagsEnabled

func (i *SshCInstance) GetFlagsEnabled() []string

func (*SshCInstance) GetGroupsDisabled

func (i *SshCInstance) GetGroupsDisabled() []string

func (*SshCInstance) GetGroupsEnabled

func (i *SshCInstance) GetGroupsEnabled() []string

func (*SshCInstance) GetLogger

func (i *SshCInstance) GetLogger() *log.SshCLogger

func (*SshCInstance) GetNodeHooks4Event

func (i *SshCInstance) GetNodeHooks4Event(event string, proj *specs.SshCProject, group *specs.SshCGroup, node *specs.SshCNode) []specs.SshCHook

func (*SshCInstance) GetRemotes

func (i *SshCInstance) GetRemotes() *specs.RemotesConfig

func (*SshCInstance) GetSkipSync

func (i *SshCInstance) GetSkipSync() bool

func (*SshCInstance) LoadEnvironments

func (i *SshCInstance) LoadEnvironments() error

func (*SshCInstance) ProcessHooks

func (i *SshCInstance) ProcessHooks(hooks *[]specs.SshCHook, proj *specs.SshCProject,
	group *specs.SshCGroup, env *specs.SshCEnvironment, targetNode *specs.SshCNode) error

func (*SshCInstance) SetFlagsDisabled

func (i *SshCInstance) SetFlagsDisabled(flags []string)

func (*SshCInstance) SetFlagsEnabled

func (i *SshCInstance) SetFlagsEnabled(flags []string)

func (*SshCInstance) SetGroupsDisabled

func (i *SshCInstance) SetGroupsDisabled(groups []string)

func (*SshCInstance) SetGroupsEnabled

func (i *SshCInstance) SetGroupsEnabled(groups []string)

func (*SshCInstance) SetRemotes

func (i *SshCInstance) SetRemotes(r *specs.RemotesConfig)

func (*SshCInstance) SetSkipSync

func (i *SshCInstance) SetSkipSync(v bool)

func (*SshCInstance) Validate added in v0.3.0

func (i *SshCInstance) Validate(ignoreError bool) error

Jump to

Keyboard shortcuts

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