project

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	OrgID                     string
	ID                        string
	Name                      string
	RegionUsageRestrictions   string
	WithDefaultAlertsSettings bool
	Tags                      []*akov2.TagSpec
}

func NewProject

func NewProject(project *akov2.AtlasProject, orgID string) *Project

type ProjectAPI

type ProjectAPI struct {
	// contains filtered or unexported fields
}

func NewProjectAPIService

func NewProjectAPIService(sdk admin.ProjectsApi) *ProjectAPI

func (*ProjectAPI) CreateProject

func (a *ProjectAPI) CreateProject(ctx context.Context, project *Project) error

func (*ProjectAPI) DeleteProject

func (a *ProjectAPI) DeleteProject(ctx context.Context, project *Project) error

func (*ProjectAPI) GetProject added in v2.5.0

func (a *ProjectAPI) GetProject(ctx context.Context, ID string) (*Project, error)

func (*ProjectAPI) GetProjectByName

func (a *ProjectAPI) GetProjectByName(ctx context.Context, name string) (*Project, error)

type ProjectReferrer added in v2.7.0

type ProjectReferrer interface {
	ProjectDualRef() *akov2.ProjectDualReference
}

ProjectReferrer is anything that holds a ProjectDualReference

type ProjectReferrerObject added in v2.7.0

type ProjectReferrerObject interface {
	client.Object
	ProjectReferrer
}

ProjectReferrerObject is an project referrer that is also an Kubernetes Object

type ProjectService

type ProjectService interface {
	GetProjectByName(ctx context.Context, name string) (*Project, error)
	GetProject(ctx context.Context, ID string) (*Project, error)
	CreateProject(ctx context.Context, project *Project) error
	DeleteProject(ctx context.Context, project *Project) error
}

Jump to

Keyboard shortcuts

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