platforms

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: GPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IContainer

type IContainer interface {
	Run() error
	PreRun(config *configuration.Configuration, client *client.Http, user *authentication.User) error
	PostRun(config *configuration.Configuration, dnsCache *dns.Records) error
	InitContainer(definitions v1.ContainersInternal, config *configuration.Configuration, client *client.Http, user *authentication.User) error
	MountResources() error

	UpdateDns(dnsCache *dns.Records) error
	RemoveDns(dnsCache *dns.Records, networkId string) error
	SyncNetwork() error

	HasDependencyOn(string, string, string) bool
	HasOwner() bool

	GetReadiness() []*readiness.Readiness
	GetState() (state.State, error)
	GetRuntime() *types.Runtime
	GetStatus() *status.Status
	GetNode() *node.Node
	GetNodeName() string
	GetId() string
	GetDefinition() idefinitions.IDefinition
	GetLabels() map[string]string
	GetGeneratedName() string
	GetName() string
	GetGroup() string
	GetGroupIdentifier() string
	GetDomain(network string) string
	GetHeadlessDomain(network string) string
	GetInit() IPlatform
	GetInitDefinition() v1.ContainersInternal

	IsGhost() bool
	SetGhost(bool)

	Start() error
	Stop(signal string) error
	Kill(signal string) error
	Restart() error
	Delete() error
	Wait(string) error
	Rename(newName string) error
	Exec(command []string) (types.ExecResult, error)
	ExecTTY(command []string, interactive bool) (string, *bufio.Reader, net.Conn, error)
	ExecInspect(string) (int, error)
	Logs(bool) (io.ReadCloser, error)
	Clean() error

	ToJson() ([]byte, error)
}

type IPlatform

type IPlatform interface {
	Run() error
	PreRun(config *configuration.Configuration, client *client.Http, user *authentication.User, runtime *types.Runtime) error
	PostRun(config *configuration.Configuration, dnsCache *dns.Records) error
	InitContainer(definition v1.ContainersInternal, config *configuration.Configuration, client *client.Http, user *authentication.User, runtime *types.Runtime) error
	MountResources() error

	UpdateDns(dnsCache *dns.Records) error
	RemoveDns(dnsCache *dns.Records, networkId string) error
	SyncNetwork() error

	GetReadiness() []*readiness.Readiness

	GetState() (state.State, error)
	GetId() string
	GetDefinition() idefinitions.IDefinition
	GetGeneratedName() string
	GetName() string
	GetGroup() string
	GetGroupIdentifier() string
	GetDomain(networkName string) string
	GetHeadlessDomain(networkName string) string
	GetInit() IPlatform
	GetInitDefinition() v1.ContainersInternal

	Start() error
	Stop(signal string) error
	Kill(signal string) error
	Restart() error
	Delete() error
	Rename(newName string) error
	Exec(command []string) (types.ExecResult, error)
	ExecTTY(command []string, interactive bool) (string, *bufio.Reader, net.Conn, error)
	ExecClose(string) (int, error)
	Logs(bool) (io.ReadCloser, error)
	Wait(string) error
	Clean() error

	ToJson() ([]byte, error)
}

type Readiness added in v0.1.30

type Readiness interface {
}

type Registry added in v0.1.24

type Registry interface {
	AddOrUpdate(group string, name string, containerAddr IContainer)
	Sync(group string, name string) error

	Remove(prefix string, group string, name string) error
	FindLocal(group string, name string) IContainer
	Find(prefix string, group string, name string) IContainer
	FindGroup(prefix string, group string) []IContainer
	Name(client *client.Http, prefix string, group string, name string) (string, []uint64, error)
	NameReplica(group string, name string, index uint64) string
	BackOff(group string, name string) error
	BackOffReset(group string, name string)
	GetIndexes(prefix string, group string, name string) ([]uint64, error)
	GetIndexesLocal(prefix string, group string, name string) ([]uint64, error)
}

Directories

Path Synopsis
engines

Jump to

Keyboard shortcuts

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