Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeService

type FakeService struct {
	ValidateDeployableFn func(string) error
}

func (*FakeService) Create

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

func (*FakeService) EnsureDefaultNamespace

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

func (*FakeService) ValidateDeployable

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
	Create(namespaceName string, committer state.Committer) error
}

func NewService

func NewService(namespaces core.NamespaceRepository, environments core.EnvironmentRepository) Service