identitytoolkit

package
v1.60.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Copyright 2023 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2023 Google LLC. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyConfig

func ApplyConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyOAuthIdpConfig

func ApplyOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyTenant

func ApplyTenant(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ApplyTenantOAuthIdpConfig

func ApplyTenantOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func ConfigHasDiff

func ConfigHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func ConfigID

func ConfigID(u *unstructured.Resource) (string, error)

func ConfigToUnstructured

func ConfigToUnstructured(r *dclService.Config) *unstructured.Resource

func DeleteConfig

func DeleteConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteOAuthIdpConfig

func DeleteOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteTenant

func DeleteTenant(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteTenantOAuthIdpConfig

func DeleteTenantOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func GetConfig

func GetConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetOAuthIdpConfig

func GetOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetTenant

func GetTenant(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func GetTenantOAuthIdpConfig

func GetTenantOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)

func ListOAuthIdpConfig

func ListOAuthIdpConfig(ctx context.Context, config *dcl.Config, project string) ([]*unstructured.Resource, error)

func ListTenant

func ListTenant(ctx context.Context, config *dcl.Config, project string) ([]*unstructured.Resource, error)

func ListTenantOAuthIdpConfig

func ListTenantOAuthIdpConfig(ctx context.Context, config *dcl.Config, project string, tenant string) ([]*unstructured.Resource, error)

func OAuthIdpConfigHasDiff

func OAuthIdpConfigHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func OAuthIdpConfigID

func OAuthIdpConfigID(u *unstructured.Resource) (string, error)

func OAuthIdpConfigToUnstructured

func OAuthIdpConfigToUnstructured(r *dclService.OAuthIdpConfig) *unstructured.Resource

func TenantHasDiff

func TenantHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func TenantID

func TenantID(u *unstructured.Resource) (string, error)

func TenantOAuthIdpConfigHasDiff

func TenantOAuthIdpConfigHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func TenantOAuthIdpConfigID

func TenantOAuthIdpConfigID(u *unstructured.Resource) (string, error)

func TenantToUnstructured

func TenantToUnstructured(r *dclService.Tenant) *unstructured.Resource

func UnstructuredToConfig

func UnstructuredToConfig(u *unstructured.Resource) (*dclService.Config, error)

func UnstructuredToOAuthIdpConfig

func UnstructuredToOAuthIdpConfig(u *unstructured.Resource) (*dclService.OAuthIdpConfig, error)

func UnstructuredToTenant

func UnstructuredToTenant(u *unstructured.Resource) (*dclService.Tenant, error)

func UnstructuredToTenantOAuthIdpConfig

func UnstructuredToTenantOAuthIdpConfig(u *unstructured.Resource) (*dclService.TenantOAuthIdpConfig, error)

Types

type Config

type Config struct{}

func (*Config) Apply

func (r *Config) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*Config) Delete

func (r *Config) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*Config) DeletePolicyMember added in v1.1.0

func (r *Config) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*Config) Get

func (r *Config) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Config) GetPolicy

func (r *Config) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Config) GetPolicyMember

func (r *Config) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*Config) HasDiff

func (r *Config) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*Config) ID

func (r *Config) ID(resource *unstructured.Resource) (string, error)

func (*Config) STV

func (*Config) SetPolicy

func (r *Config) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*Config) SetPolicyMember

func (r *Config) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*Config) SetPolicyWithEtag added in v1.1.0

func (r *Config) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type OAuthIdpConfig

type OAuthIdpConfig struct{}

func (*OAuthIdpConfig) Apply

func (r *OAuthIdpConfig) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*OAuthIdpConfig) Delete

func (r *OAuthIdpConfig) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*OAuthIdpConfig) DeletePolicyMember added in v1.1.0

func (r *OAuthIdpConfig) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*OAuthIdpConfig) Get

func (*OAuthIdpConfig) GetPolicy

func (r *OAuthIdpConfig) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*OAuthIdpConfig) GetPolicyMember

func (r *OAuthIdpConfig) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*OAuthIdpConfig) HasDiff

func (r *OAuthIdpConfig) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*OAuthIdpConfig) ID

func (r *OAuthIdpConfig) ID(resource *unstructured.Resource) (string, error)

func (*OAuthIdpConfig) STV

func (*OAuthIdpConfig) SetPolicy

func (r *OAuthIdpConfig) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*OAuthIdpConfig) SetPolicyMember

func (r *OAuthIdpConfig) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*OAuthIdpConfig) SetPolicyWithEtag added in v1.1.0

func (r *OAuthIdpConfig) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type Tenant

type Tenant struct{}

func (*Tenant) Apply

func (r *Tenant) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*Tenant) Delete

func (r *Tenant) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*Tenant) DeletePolicyMember added in v1.1.0

func (r *Tenant) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*Tenant) Get

func (r *Tenant) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Tenant) GetPolicy

func (r *Tenant) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Tenant) GetPolicyMember

func (r *Tenant) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*Tenant) HasDiff

func (r *Tenant) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*Tenant) ID

func (r *Tenant) ID(resource *unstructured.Resource) (string, error)

func (*Tenant) STV

func (*Tenant) SetPolicy

func (r *Tenant) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*Tenant) SetPolicyMember

func (r *Tenant) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*Tenant) SetPolicyWithEtag added in v1.1.0

func (r *Tenant) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type TenantOAuthIdpConfig

type TenantOAuthIdpConfig struct{}

func (*TenantOAuthIdpConfig) Apply

func (*TenantOAuthIdpConfig) Delete

func (r *TenantOAuthIdpConfig) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*TenantOAuthIdpConfig) DeletePolicyMember added in v1.1.0

func (r *TenantOAuthIdpConfig) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*TenantOAuthIdpConfig) Get

func (*TenantOAuthIdpConfig) GetPolicy

func (r *TenantOAuthIdpConfig) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*TenantOAuthIdpConfig) GetPolicyMember

func (r *TenantOAuthIdpConfig) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*TenantOAuthIdpConfig) HasDiff

func (r *TenantOAuthIdpConfig) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*TenantOAuthIdpConfig) ID

func (*TenantOAuthIdpConfig) STV

func (*TenantOAuthIdpConfig) SetPolicy

func (*TenantOAuthIdpConfig) SetPolicyMember

func (r *TenantOAuthIdpConfig) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*TenantOAuthIdpConfig) SetPolicyWithEtag added in v1.1.0

func (r *TenantOAuthIdpConfig) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL