Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ProjectStateActive is the state of active project.
ProjectStateActive = "ACTIVE"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientProvider ¶
type CredentialProvider ¶
type CredentialProvider func(ctx context.Context) (*google.Credentials, error)
type GoogleAPIClient ¶
type ImageInfo ¶
type ImageInfo struct { IsGCR bool `json:"-"` IsAR bool `json:"-"` IsLatest bool `json:"isLatest"` Deployed string `json:"deployed"` Name string `json:"name"` Tag string `json:"tag"` Digest string `json:"digest"` Region string `json:"region"` Registry string `json:"registry"` Project string `json:"project"` Folder string `json:"registryFolder"` }
ImageInfo represents parsed GCP registry image (GCR or AR).
func ParseImageInfo ¶
ParseImageInfo parses image string into ImageInfo struct. Supported formats:
- gcr.io/cloudy-demos/hello-broken
- gcr.io/cloudy-demos/hello-broken:latest
- gcr.io/cloudy-demos/hello-broken@sha256:1234567890
- gcr.io/cloudy-demos/hello-broken:v0.8.3
- us.gcr.io/cloudy-demos/hello-broken:v0.8.3
- us-west1-docker.pkg.dev/cloudy-demos/artomator/artomator
- us-west1-docker.pkg.dev/cloudy-demos/artomator/artomator:latest
- us-west1-docker.pkg.dev/cloudy-demos/artomator/artomator:v0.8.3
- us-west1-docker.pkg.dev/cloudy-demos/artomator/artomator@sha256:1234567890
- us-docker.pkg.dev/cloudy-demos/test-multiregion
func (*ImageInfo) ManifestURL ¶
ManifestURL returns manifest URL for the image.
Click to show internal directories.
Click to hide internal directories.