package
Version:
v0.0.0-...-c49be44
Opens a new window with list of versions in this module.
Published: Dec 11, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Regions gets the supported regions for the project.
type API struct {
Client *run.APIService
Region string
}
API is a wrapper for the Cloud Run package.
NewAPIClient initializes an instance of APIService.
func (a *API) ReplaceService(namespace, serviceID string, svc *run.Service) (*run.Service, error)
ReplaceService replaces an existing service.
func (a *API) Service(namespace, serviceID string) (*run.Service, error)
Service retrieves information about a service.
func (a *API) ServicesWithLabelSelector(namespace string, labelSelector string) ([]*run.Service, error)
ServicesWithLabelSelector gets services filtered by a label selector.
type Client interface {
Service(namespace, serviceID string) (*run.Service, error)
ReplaceService(namespace, serviceID string, svc *run.Service) (*run.Service, error)
}
Client represents a wrapper around the Cloud Run package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.