Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalResourceReference ¶
type ExternalResourceReference struct {
// contains filtered or unexported fields
}
func New ¶
func New(serviceBaseURL string, gcpObj GCPResource) *ExternalResourceReference
New builds the External Reference for CloudBuildWorkerPool when the object already exists on the GCP server. Ideally, it expects to use the GCP object's selfLink value as the external reference. However, if the resource does not have `selfLink` (like CloudBuildWorkerPool), it builds the URL from the GCP object.
func (*ExternalResourceReference) Get ¶
func (e *ExternalResourceReference) Get() *string
type GCPResource ¶
type GCPResource interface {
GetName() string
}
Click to show internal directories.
Click to hide internal directories.