namespace

package
v0.0.32-pre1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeService added in v0.0.10

type FakeService struct {
	ValidateDeployableFn func(string) error
}

func (*FakeService) Create added in v0.0.10

func (fake *FakeService) Create(namespaceName string, committer state.Committer) error

func (*FakeService) EnsureDefaultNamespace added in v0.0.10

func (fake *FakeService) EnsureDefaultNamespace(committer state.Committer) error

func (*FakeService) EnsureNamespaceInStage added in v0.0.10

func (fake *FakeService) EnsureNamespaceInStage(namespaceName string, stageName string, committer state.Committer) error

func (*FakeService) ValidateDeployable added in v0.0.10

func (fake *FakeService) ValidateDeployable(namespaceName string) error

type Service

type Service interface {
	// ValidateDeployable validates that a namespace is deployable. Returns a ValidationError if it is not.
	ValidateDeployable(namespaceName string) error
	// EnsureDefaultNamespace ensures that the default namespace has been provisioned. Designed to be used only at server startup.
	EnsureDefaultNamespace(committer state.Committer) error
	// EnsureNamespaceInStage ensures that a namespace has been committed to a stage. Returns an error if the namespace has not been created
	EnsureNamespaceInStage(namespaceName string, stageName string, committer state.Committer) error
	Create(namespaceName string, committer state.Committer) error
}

func NewService

func NewService(namespaces core.NamespaceRepository, stages core.StageRepository) Service

Jump to

Keyboard shortcuts

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