projects

package
v0.0.0-...-07ed46d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectData

type ProjectData struct {
	Number int64
	ID     string
}

type ProjectName

type ProjectName struct {
	ProjectID     string
	ProjectNumber int64
	OriginalValue string
}

func ParseProjectName

func ParseProjectName(name string) (*ProjectName, error)

ParseProjectName parses a string into a ProjectName. The expected form is projects/<projectIDOrNumber>

func (*ProjectName) String

func (n *ProjectName) String() string

type ProjectStore

type ProjectStore interface {
	GetProject(project *ProjectName) (*ProjectData, error)
	GetProjectByID(projectID string) (*ProjectData, error)

	// GetProjectByNumber returns the project with the specified project number, or an error if not found.
	// Note that the project number must still be passed as a string, to keep terraform happy.
	GetProjectByNumber(projectNumberAsString string) (*ProjectData, error)
}

Jump to

Keyboard shortcuts

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