Documentation ¶
Index ¶
- type FakeService
- func (fake *FakeService) Create(namespaceName string, committer state.Committer) error
- func (fake *FakeService) EnsureDefaultNamespace(committer state.Committer) error
- func (fake *FakeService) EnsureNamespaceInStage(namespaceName string, stageName string, committer state.Committer) error
- func (fake *FakeService) ValidateDeployable(namespaceName string) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeService ¶ added in v0.0.10
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 (*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
Click to show internal directories.
Click to hide internal directories.