Documentation ¶
Index ¶
- func AuthServiceAccount() error
- func GetKubeConfig(gcpProjectID string) error
- func NewEnv(ctx context.Context, gcpProjectID string) (*api.Env, error)
- type CloudBuild
- type FirebaseAuth
- type Firestore
- func (fs *Firestore) GetVersionnedAPI(im api.ImageName) (*api.Version, error)
- func (fs *Firestore) IsUserAdminOfNamespace(UID string, namespace string) (bool, error)
- func (fs *Firestore) UpdateAPIMetadata(imageID string, metadata *map[string]interface{}) error
- func (fs *Firestore) UpdateVersionnedAPI(imID string, version string, template *api.Version) error
- type GCR
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthServiceAccount ¶
func AuthServiceAccount() error
AuthServiceAccount authenticates gcloud using application credentials.
func GetKubeConfig ¶
GetKubeConfig gets the kubeconfig.
Types ¶
type CloudBuild ¶
type CloudBuild struct {
GCPProjectID string
}
CloudBuild implements ContainerBuilder for Cloud Build.
func NewCloudBuild ¶
func NewCloudBuild(ctx context.Context, gcpProjectID string) (*CloudBuild, error)
NewCloudBuild returns a new instance of Firestore.
func (*CloudBuild) GetBuildType ¶
func (cb *CloudBuild) GetBuildType() *v1.BuildType
GetBuildType returns the build type for skaffold.
type FirebaseAuth ¶
type FirebaseAuth struct {
Client *firebaseAuth.Client
}
FirebaseAuth implements api.Auth for Firebase authentication (Cloud IP)
func NewFirebaseAuth ¶
func NewFirebaseAuth(ctx context.Context, gcpProjectID string) (*FirebaseAuth, error)
NewFirebaseAuth returns a new instance of FirebaseAuth.
func (*FirebaseAuth) VerifyIDToken ¶
func (auth *FirebaseAuth) VerifyIDToken(accessToken string) (string, error)
VerifyIDToken verifies ID tokens and returns the token UID.
type Firestore ¶
Firestore implements api.DB for Firestore.
func NewFirestore ¶
NewFirestore returns a new instance of Firestore.
func (*Firestore) GetVersionnedAPI ¶
GetVersionnedAPI retrieves an api version from the DB.
func (*Firestore) IsUserAdminOfNamespace ¶
IsUserAdminOfNamespace check if the namespace has UID as admin.
func (*Firestore) UpdateAPIMetadata ¶
UpdateAPIMetadata updates API metadata
type GCR ¶
type GCR struct {
GCPProjectID string
}
GCR implements ContainerRegistry for GCR.
func (*GCR) GetDockerImagePath ¶
GetDockerImagePath returns the fully qualified URL of a docker image on the appropriate registry.
func (*GCR) ListImageTags ¶
ListImageTags lists all tags of an image on gcr.io.