domain

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCannotDisableSystemAdmin = errors.New("environment: cannot disable system admin")
	ErrCannotArchiveSystemAdmin = errors.New("environment: cannot archive system admin")
)

Functions

This section is empty.

Types

type EnvironmentV2 added in v0.4.0

type EnvironmentV2 struct {
	*proto.EnvironmentV2
}

func NewEnvironmentV2 added in v0.4.0

func NewEnvironmentV2(
	name,
	urlCode,
	description,
	projectID,
	organizationID string,
	requireComment bool,
	logger *zap.Logger,
) (*EnvironmentV2, error)

func (*EnvironmentV2) ChangeDescription added in v0.4.0

func (e *EnvironmentV2) ChangeDescription(description string)

func (*EnvironmentV2) ChangeRequireComment added in v0.4.1

func (e *EnvironmentV2) ChangeRequireComment(state bool)

func (*EnvironmentV2) Rename added in v0.4.0

func (e *EnvironmentV2) Rename(name string)

func (*EnvironmentV2) SetArchived added in v0.4.0

func (e *EnvironmentV2) SetArchived()

func (*EnvironmentV2) SetUnarchived added in v0.4.0

func (e *EnvironmentV2) SetUnarchived()

type Organization added in v0.4.0

type Organization struct {
	*proto.Organization
}

func NewOrganization added in v0.4.0

func NewOrganization(name, urlCode, description string, trial, systemAdmin bool) (*Organization, error)

func (*Organization) Archive added in v0.4.0

func (p *Organization) Archive() error

func (*Organization) ChangeDescription added in v0.4.0

func (p *Organization) ChangeDescription(description string)

func (*Organization) ChangeName added in v0.4.0

func (p *Organization) ChangeName(name string)

func (*Organization) ConvertTrial added in v0.4.0

func (p *Organization) ConvertTrial()

func (*Organization) Disable added in v0.4.0

func (p *Organization) Disable() error

func (*Organization) Enable added in v0.4.0

func (p *Organization) Enable()

func (*Organization) Unarchive added in v0.4.0

func (p *Organization) Unarchive()

type Project

type Project struct {
	*proto.Project
}

func NewProject

func NewProject(name, urlCode, description, creatorEmail, organizationID string, trial bool) (*Project, error)

func (*Project) ChangeDescription

func (p *Project) ChangeDescription(description string)

func (*Project) ConvertTrial

func (p *Project) ConvertTrial()

func (*Project) Disable

func (p *Project) Disable()

func (*Project) Enable

func (p *Project) Enable()

func (*Project) Rename added in v0.4.0

func (p *Project) Rename(name string)

Jump to

Keyboard shortcuts

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