prerequisite

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrerequisiteGathererList []PrerequisiteGatherer

Functions

func RegisterPrerequisiteGatherer

func RegisterPrerequisiteGatherer(name string, config PrerequisiteGatherer)

Types

type DbEnvVars

type DbEnvVars struct {
	DbType   string
	Hostname string
	Username string
	Password string
	Port     string
	Database string
}

type EnvVarRsyncPrerequisite

type EnvVarRsyncPrerequisite struct {
	SyncerType        string
	LagoonVersion     string
	LagoonProject     string
	LagoonEnvironment string
	LagoonRoute       string
	LagoonDomain      string
	Lagoon            string
	MariaDb           DbEnvVars
	MongoDb           DbEnvVars
	PostgresDb        DbEnvVars
}

func (*EnvVarRsyncPrerequisite) GatherPrerequisites

func (e *EnvVarRsyncPrerequisite) GatherPrerequisites() ([]GatheredPrerequisite, error)

func (*EnvVarRsyncPrerequisite) GetName

func (e *EnvVarRsyncPrerequisite) GetName() string

func (*EnvVarRsyncPrerequisite) GetValue

func (e *EnvVarRsyncPrerequisite) GetValue() bool

func (*EnvVarRsyncPrerequisite) Status

func (e *EnvVarRsyncPrerequisite) Status() int

type GatheredPrerequisite

type GatheredPrerequisite struct {
	Name   string `json:"name"`
	Value  string `json:"value"`
	Status int    `json:"status"`
}

type PreRequisiteResponse

type PreRequisiteResponse struct {
	Version           string                 `json:"version"`
	LagoonSyncPath    string                 `json:"lagoon-sync-path"`
	EnvPrerequisite   []GatheredPrerequisite `json:"env-config"`
	RysncPrerequisite []GatheredPrerequisite `json:"rsync-config"`
}

func (*PreRequisiteResponse) IsPrerequisiteResponseEmpty

func (p *PreRequisiteResponse) IsPrerequisiteResponseEmpty() bool

type PrerequisiteGatherer

type PrerequisiteGatherer interface {
	GetName() string
	GetValue() bool
	GatherPrerequisites() ([]GatheredPrerequisite, error)
	Status() int
}

func GetPrerequisiteGatherer

func GetPrerequisiteGatherer() []PrerequisiteGatherer

type RsyncPrerequisite

type RsyncPrerequisite struct {
	RsyncPath string
}

func (*RsyncPrerequisite) GatherPrerequisites

func (p *RsyncPrerequisite) GatherPrerequisites() ([]GatheredPrerequisite, error)

func (*RsyncPrerequisite) GetName

func (p *RsyncPrerequisite) GetName() string

func (*RsyncPrerequisite) GetValue

func (p *RsyncPrerequisite) GetValue() bool

func (*RsyncPrerequisite) Status

func (p *RsyncPrerequisite) Status() int

Jump to

Keyboard shortcuts

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