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 ¶
- type SshCInstance
- func (i *SshCInstance) AddEnvironment(env specs.SshCEnvironment)
- func (i *SshCInstance) AddFlagDisabled(flag string)
- func (i *SshCInstance) AddFlagEnabled(flag string)
- func (i *SshCInstance) ApplyCommand(c *specs.SshCCommand, proj *specs.SshCProject, envs []string, ...) error
- func (i *SshCInstance) ApplyGroup(group *specs.SshCGroup, proj *specs.SshCProject, env *specs.SshCEnvironment, ...) error
- func (i *SshCInstance) ApplyProject(projectName string) error
- func (i *SshCInstance) GetConfig() *specs.SshComposeConfig
- func (i *SshCInstance) GetEntitiesByNodeName(name string) (*specs.SshCEnvironment, *specs.SshCProject, *specs.SshCGroup, *specs.SshCNode)
- func (i *SshCInstance) GetEnvByProjectName(name string) *specs.SshCEnvironment
- func (i *SshCInstance) GetEnvironments() *[]specs.SshCEnvironment
- func (i *SshCInstance) GetFlagsDisabled() []string
- func (i *SshCInstance) GetFlagsEnabled() []string
- func (i *SshCInstance) GetGroupsDisabled() []string
- func (i *SshCInstance) GetGroupsEnabled() []string
- func (i *SshCInstance) GetLogger() *log.SshCLogger
- func (i *SshCInstance) GetNodeHooks4Event(event string, proj *specs.SshCProject, group *specs.SshCGroup, ...) []specs.SshCHook
- func (i *SshCInstance) GetRemotes() *specs.RemotesConfig
- func (i *SshCInstance) GetSkipSync() bool
- func (i *SshCInstance) LoadEnvironments() error
- func (i *SshCInstance) ProcessHooks(hooks *[]specs.SshCHook, proj *specs.SshCProject, group *specs.SshCGroup, ...) error
- func (i *SshCInstance) SetFlagsDisabled(flags []string)
- func (i *SshCInstance) SetFlagsEnabled(flags []string)
- func (i *SshCInstance) SetGroupsDisabled(groups []string)
- func (i *SshCInstance) SetGroupsEnabled(groups []string)
- func (i *SshCInstance) SetRemotes(r *specs.RemotesConfig)
- func (i *SshCInstance) SetSkipSync(v bool)
- func (i *SshCInstance) Validate(ignoreError bool) error
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 (i *SshCInstance) ApplyGroup(group *specs.SshCGroup, proj *specs.SshCProject, env *specs.SshCEnvironment, compiler template.SshCTemplateCompiler) error
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
Click to show internal directories.
Click to hide internal directories.