Documentation ¶
Index ¶
- type Client
- type DatabaseInstance
- type DefaultSupportedOAuthIdpConfig
- 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 IdentityPlatformService
- func (s *IdentityPlatformService) DeleteDefaultSupportedOAuthIdpConfig(ctx context.Context, projectID, configID string) error
- func (s *IdentityPlatformService) DeleteOAuthIdpConfig(ctx context.Context, projectID, configID string) error
- func (s *IdentityPlatformService) GetProjectConfig(ctx context.Context, projectID string) (*ProjectConfig, error)
- func (s *IdentityPlatformService) ListDefaultSupportedOAuthIdpConfigs(ctx context.Context, projectID string) (*ListDefaultSupportedOAuthIdpConfigsResponse, error)
- func (s *IdentityPlatformService) ListOAuthIdpConfigs(ctx context.Context, projectID string) (*ListOAuthIdpConfigsResponse, error)
- func (s *IdentityPlatformService) UpdateProjectConfig(ctx context.Context, projectID string, config *ProjectConfig) (*ProjectConfig, error)
- type ListDefaultSupportedOAuthIdpConfigsResponse
- type ListOAuthIdpConfigsResponse
- type MFAConfig
- type OAuthIdpConfig
- type Organization
- type Project
- type ProjectConfig
- type ProviderConfig
- type SignInConfig
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 DefaultSupportedOAuthIdpConfig ¶ added in v1.6.0
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 IdentityPlatformService ¶ added in v1.6.0
type IdentityPlatformService struct { BasePath string UserAgent string // contains filtered or unexported fields }
IdentityPlatformService provides methods to interact with the Identity Platform API
func NewIdentityPlatformService ¶ added in v1.6.0
func NewIdentityPlatformService(ctx context.Context, opts ...option.ClientOption) (*IdentityPlatformService, error)
NewIdentityPlatformService creates a new Identity Platform client
func (*IdentityPlatformService) DeleteDefaultSupportedOAuthIdpConfig ¶ added in v1.6.0
func (s *IdentityPlatformService) DeleteDefaultSupportedOAuthIdpConfig(ctx context.Context, projectID, configID string) error
DeleteDefaultSupportedOAuthIdpConfig deletes an OAuth IDP configuration of a project
func (*IdentityPlatformService) DeleteOAuthIdpConfig ¶ added in v1.6.0
func (s *IdentityPlatformService) DeleteOAuthIdpConfig(ctx context.Context, projectID, configID string) error
DeleteOAuthIdpConfig deletes an OAuth IDP configuration of a project
func (*IdentityPlatformService) GetProjectConfig ¶ added in v1.6.0
func (s *IdentityPlatformService) GetProjectConfig(ctx context.Context, projectID string) (*ProjectConfig, error)
GetProjectConfig retrieves the configuration of a project
func (*IdentityPlatformService) ListDefaultSupportedOAuthIdpConfigs ¶ added in v1.6.0
func (s *IdentityPlatformService) ListDefaultSupportedOAuthIdpConfigs(ctx context.Context, projectID string) (*ListDefaultSupportedOAuthIdpConfigsResponse, error)
ListDefaultSupportedOAuthIdpConfigs lists the OAuth IDP configurations of a project
func (*IdentityPlatformService) ListOAuthIdpConfigs ¶ added in v1.6.0
func (s *IdentityPlatformService) ListOAuthIdpConfigs(ctx context.Context, projectID string) (*ListOAuthIdpConfigsResponse, error)
ListOAuthIdpConfigs lists the OAuth IDP configurations of a project
func (*IdentityPlatformService) UpdateProjectConfig ¶ added in v1.6.0
func (s *IdentityPlatformService) UpdateProjectConfig(ctx context.Context, projectID string, config *ProjectConfig) (*ProjectConfig, error)
UpdateProjectConfig updates the configuration of a project
type ListDefaultSupportedOAuthIdpConfigsResponse ¶ added in v1.6.0
type ListDefaultSupportedOAuthIdpConfigsResponse struct {
DefaultSupportedIdpConfigs []*DefaultSupportedOAuthIdpConfig `json:"defaultSupportedIdpConfigs"`
}
type ListOAuthIdpConfigsResponse ¶ added in v1.6.0
type ListOAuthIdpConfigsResponse struct {
OAuthIdpConfigs []*OAuthIdpConfig `json:"oauthIdpConfigs"`
}
type OAuthIdpConfig ¶ added in v1.6.0
type Organization ¶
func (*Organization) ID ¶
func (o *Organization) ID() string
type ProjectConfig ¶ added in v1.6.0
type ProjectConfig struct { Name string `json:"name"` AutoDeleteAnonymousUsers bool `json:"autodeleteAnonymousUsers"` SignIn *SignInConfig `json:"signIn,omitempty"` MFA *MFAConfig `json:"mfa,omitempty"` }
ProjectConfig represents the configuration of a project in Identity Platform
type ProviderConfig ¶ added in v1.6.0
type ProviderConfig struct {
Enabled bool `json:"enabled"`
}
type SignInConfig ¶ added in v1.6.0
type SignInConfig struct { Anonymous *ProviderConfig `json:"anonymous,omitempty"` Email *ProviderConfig `json:"email,omitempty"` Phone *ProviderConfig `json:"phoneNumber,omitempty"` }