Documentation
¶
Index ¶
- type Client
- type DatabaseInstance
- type FirebaseDatabaseService
- func (s *FirebaseDatabaseService) DeleteDatabaseInstance(ctx context.Context, parent, name string) error
- func (s *FirebaseDatabaseService) DisableDatabaseInstance(ctx context.Context, parent, name string) error
- func (s *FirebaseDatabaseService) ListDatabaseInstances(ctx context.Context, parent string) ([]*DatabaseInstance, error)
- func (s *FirebaseDatabaseService) ListDatabaseRegions() []string
- type GCP
- func (g *GCP) GetClientOptions() []option.ClientOption
- func (g *GCP) GetCredentials(ctx context.Context) (*google.Credentials, error)
- func (g *GCP) GetEnabledAPIs() []string
- func (g *GCP) GetZones(region string) []string
- func (g *GCP) HasOrganizations() bool
- func (g *GCP) HasProjects() bool
- func (g *GCP) ID() string
- func (g *GCP) ImpersonateServiceAccount(ctx context.Context, targetServiceAccount string) error
- type Organization
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseInstance ¶
type DatabaseInstance struct { Name string `json:"name"` Project string `json:"project"` DatabaseURL string `json:"databaseUrl"` Type string `json:"type"` State string `json:"state"` }
DatabaseInstance represents a Firebase Realtime Database instance
type FirebaseDatabaseService ¶
type FirebaseDatabaseService struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment // contains filtered or unexported fields }
func NewFirebaseDatabaseService ¶
func NewFirebaseDatabaseService(ctx context.Context, opts ...option.ClientOption) (*FirebaseDatabaseService, error)
NewFirebaseDatabaseService creates a new Firebase Realtime Database client to interact with the https://firebasedatabase.googleapis.com endpoints as there is no official golang client library
func (*FirebaseDatabaseService) DeleteDatabaseInstance ¶
func (s *FirebaseDatabaseService) DeleteDatabaseInstance(ctx context.Context, parent, name string) error
DeleteDatabaseInstance deletes a Firebase Realtime Database instance
func (*FirebaseDatabaseService) DisableDatabaseInstance ¶
func (s *FirebaseDatabaseService) DisableDatabaseInstance(ctx context.Context, parent, name string) error
DisableDatabaseInstance disables a Firebase Realtime Database instance
func (*FirebaseDatabaseService) ListDatabaseInstances ¶
func (s *FirebaseDatabaseService) ListDatabaseInstances(ctx context.Context, parent string) ([]*DatabaseInstance, error)
ListDatabaseInstances lists Firebase Realtime Database instances
func (*FirebaseDatabaseService) ListDatabaseRegions ¶
func (s *FirebaseDatabaseService) ListDatabaseRegions() []string
ListDatabaseRegions lists Firebase Realtime Database regions
type GCP ¶
type GCP struct { Organizations []*Organization Projects []*Project Regions []string APIS []string ProjectID string // contains filtered or unexported fields }
func (*GCP) GetClientOptions ¶
func (g *GCP) GetClientOptions() []option.ClientOption
func (*GCP) GetCredentials ¶
func (*GCP) GetEnabledAPIs ¶
func (*GCP) HasOrganizations ¶
func (*GCP) HasProjects ¶
type Organization ¶
func (*Organization) ID ¶
func (o *Organization) ID() string
Click to show internal directories.
Click to hide internal directories.