environments

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloneEnvironmentArgs

type CloneEnvironmentArgs struct {
	SourceEnvName      string
	DestinationEnvName string
	DisplayName        string
	EnvRoutingMode     crdsv1.EnvironmentRoutingMode
	ClusterName        string
}

type Domain

type Domain interface {
	ListEnvironments(ctx types.ConsoleContext, search map[string]repos.MatchFilter, pq repos.CursorPagination) (*repos.PaginatedRecord[*entities.Environment], error)
	GetEnvironment(ctx types.ConsoleContext, name string) (*entities.Environment, error)

	CreateEnvironment(ctx types.ConsoleContext, env entities.Environment) (*entities.Environment, error)
	CloneEnvironment(ctx types.ConsoleContext, args CloneEnvironmentArgs) (*entities.Environment, error)
	UpdateEnvironment(ctx types.ConsoleContext, env entities.Environment) (*entities.Environment, error)
	DeleteEnvironment(ctx types.ConsoleContext, name string) error
	ArchiveEnvironmentsForCluster(ctx types.ConsoleContext, clusterName string) (bool, error)
}

type Sync

type Sync interface {
	OnEnvironmentApplyError(ctx types.ConsoleContext, errMsg, namespace, name string, opts UpdateAndDeleteOpts) error
	OnEnvironmentDeleteMessage(ctx types.ConsoleContext, env entities.Environment) error
	OnEnvironmentUpdateMessage(ctx types.ConsoleContext, env entities.Environment, status watcher_types.ResourceStatus, opts UpdateAndDeleteOpts) error
}

type UpdateAndDeleteOpts

type UpdateAndDeleteOpts struct {
	MessageTimestamp time.Time
	ClusterName      string
}

Jump to

Keyboard shortcuts

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