runtime

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 14 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallHPA added in v0.3.0

func InstallHPA(artifactsPath string) error

func IsApimEnabled added in v0.3.0

func IsApimEnabled() (bool, error)

func IsKnativeEnabled added in v0.3.0

func IsKnativeEnabled() (bool, error)

func IsObservabilityEnabled added in v0.3.0

func IsObservabilityEnabled() (bool, error)

Types

type CelleryRuntime added in v0.6.0

type CelleryRuntime struct {
	// contains filtered or unexported fields
}

func NewCelleryRuntime added in v0.6.0

func NewCelleryRuntime(opts ...func(*CelleryRuntime)) *CelleryRuntime

NewCelleryRuntime returns a CelleryRuntime instance.

func (*CelleryRuntime) AddApim added in v0.6.0

func (runtime *CelleryRuntime) AddApim(isPersistentVolume bool) error

func (*CelleryRuntime) AddComponent added in v0.6.0

func (runtime *CelleryRuntime) AddComponent(component SystemComponent) error

func (*CelleryRuntime) AddIdp added in v0.6.0

func (runtime *CelleryRuntime) AddIdp() error

func (*CelleryRuntime) AddObservability added in v0.6.0

func (runtime *CelleryRuntime) AddObservability() error

func (*CelleryRuntime) ApplyIstioCrds added in v0.6.0

func (runtime *CelleryRuntime) ApplyIstioCrds() error

func (*CelleryRuntime) ApplyKnativeCrds added in v0.6.0

func (runtime *CelleryRuntime) ApplyKnativeCrds() error

func (*CelleryRuntime) CreateCelleryNameSpace added in v0.6.0

func (runtime *CelleryRuntime) CreateCelleryNameSpace() error

func (*CelleryRuntime) CreateConfigMaps added in v0.6.0

func (runtime *CelleryRuntime) CreateConfigMaps() error

func (*CelleryRuntime) CreatePersistentVolume added in v0.6.0

func (runtime *CelleryRuntime) CreatePersistentVolume(hasNfs bool) error

func (*CelleryRuntime) CreatePersistentVolumeDirs added in v0.6.0

func (runtime *CelleryRuntime) CreatePersistentVolumeDirs() error

func (*CelleryRuntime) DeleteComponent added in v0.6.0

func (runtime *CelleryRuntime) DeleteComponent(component SystemComponent) error

func (*CelleryRuntime) InstallController added in v0.6.0

func (runtime *CelleryRuntime) InstallController() error

func (*CelleryRuntime) InstallIngressNginx added in v0.6.0

func (runtime *CelleryRuntime) InstallIngressNginx(isLoadBalancerIngressMode bool) error

func (*CelleryRuntime) InstallIstio added in v0.6.0

func (runtime *CelleryRuntime) InstallIstio() error

func (*CelleryRuntime) InstallKnativeServing added in v0.6.0

func (runtime *CelleryRuntime) InstallKnativeServing() error

func (*CelleryRuntime) InstallMysql added in v0.6.0

func (runtime *CelleryRuntime) InstallMysql(isPersistentVolume bool) error

func (*CelleryRuntime) IsComponentEnabled added in v0.6.0

func (runtime *CelleryRuntime) IsComponentEnabled(component SystemComponent) (bool, error)

func (*CelleryRuntime) IsGcpRuntime added in v0.6.0

func (runtime *CelleryRuntime) IsGcpRuntime() bool

func (*CelleryRuntime) IsHpaEnabled added in v0.6.0

func (runtime *CelleryRuntime) IsHpaEnabled() (bool, error)

func (*CelleryRuntime) SetArtifactsPath added in v0.6.0

func (runtime *CelleryRuntime) SetArtifactsPath(artifactsPath string)

func (*CelleryRuntime) UpdateInitSql added in v0.6.0

func (runtime *CelleryRuntime) UpdateInitSql(dbUserName, dbPassword string) error

func (*CelleryRuntime) UpdateMysqlCredentials added in v0.6.0

func (runtime *CelleryRuntime) UpdateMysqlCredentials(dbUserName, dbPassword, dbHost string) error

func (*CelleryRuntime) UpdateNfsServerDetails added in v0.6.0

func (runtime *CelleryRuntime) UpdateNfsServerDetails(ipAddress, fileShare string) error

func (*CelleryRuntime) UpdateNodePortIpAddress added in v0.6.0

func (runtime *CelleryRuntime) UpdateNodePortIpAddress(nodePortIpAddress string) error

func (*CelleryRuntime) Validate added in v0.6.0

func (runtime *CelleryRuntime) Validate() error

func (*CelleryRuntime) WaitFor added in v0.6.0

func (runtime *CelleryRuntime) WaitFor(checkKnative, hpaEnabled bool) error

type ConfigMap added in v0.2.1

type ConfigMap struct {
	Name string
	Path string
}

type MysqlDb added in v0.2.1

type MysqlDb struct {
	DbHostName string
	DbUserName string
	DbPassword string
}

type Nfs added in v0.2.1

type Nfs struct {
	NfsServerIp string
	FileShare   string
}

type Runtime added in v0.6.0

type Runtime interface {
	SetArtifactsPath(artifactsPath string)
	AddComponent(component SystemComponent) error
	DeleteComponent(component SystemComponent) error
	IsComponentEnabled(component SystemComponent) (bool, error)
	CreateCelleryNameSpace() error
	IsGcpRuntime() bool
	CreatePersistentVolumeDirs() error
	UpdateNfsServerDetails(ipAddress, fileShare string) error
	UpdateMysqlCredentials(dbUserName, dbPassword, dbHost string) error
	UpdateInitSql(dbUserName, dbPassword string) error
	ApplyIstioCrds() error
	InstallIstio() error
	InstallIngressNginx(isLoadBalancerIngressMode bool) error
	ApplyKnativeCrds() error
	InstallKnativeServing() error
	InstallController() error
	InstallMysql(isPersistentVolume bool) error
	CreateConfigMaps() error
	AddApim(isPersistentVolume bool) error
	AddObservability() error
	AddIdp() error
	UpdateNodePortIpAddress(nodePortIpAddress string) error
	CreatePersistentVolume(hasNfs bool) error
	IsHpaEnabled() (bool, error)
	WaitFor(checkKnative, hpaEnabled bool) error
	Validate() error
}

type Selection added in v0.3.0

type Selection int
const (
	NoChange Selection = iota
	Enable
	Disable
)

type SystemComponent

type SystemComponent string
const (
	ApiManager       SystemComponent = "ApiManager"
	IdentityProvider SystemComponent = "IdentityProvider"
	Observability    SystemComponent = "Observability"
	ScaleToZero      SystemComponent = "Scale to zero"
	HPA              SystemComponent = "Horizontal pod auto scalar"
	Controller       SystemComponent = "Controller"
	System           SystemComponent = "System"
	Mysql            SystemComponent = "Mysql"
)

Jump to

Keyboard shortcuts

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