Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectData ¶
type ProjectName ¶
func ParseProjectIDOrNumber ¶
func ParseProjectIDOrNumber(s string) (*ProjectName, error)
ParseProjectIDOrNumber parses a string into a ProjectName. The expected form is <projectID> or <projectNumber> (without a projects/ prefix)
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) // GetProjectByIDOrNumber will return the project by the id or number provided. GetProjectByIDOrNumber(projectIDOrNumber string) (*ProjectData, error) }
Click to show internal directories.
Click to hide internal directories.