Documentation ¶
Overview ¶
Copyright 2022 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 2022 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 2022 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 2022 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 ¶
- func ApplyConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyTenant(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyTenantOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ConfigHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func ConfigID(u *unstructured.Resource) (string, error)
- func ConfigToUnstructured(r *dclService.Config) *unstructured.Resource
- func DeleteConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteTenant(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteTenantOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetTenant(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetTenantOAuthIdpConfig(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func ListOAuthIdpConfig(ctx context.Context, config *dcl.Config, project string) ([]*unstructured.Resource, error)
- func ListTenant(ctx context.Context, config *dcl.Config, project string) ([]*unstructured.Resource, error)
- func ListTenantOAuthIdpConfig(ctx context.Context, config *dcl.Config, project string, tenant string) ([]*unstructured.Resource, error)
- func OAuthIdpConfigHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func OAuthIdpConfigID(u *unstructured.Resource) (string, error)
- func OAuthIdpConfigToUnstructured(r *dclService.OAuthIdpConfig) *unstructured.Resource
- func TenantHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func TenantID(u *unstructured.Resource) (string, error)
- func TenantOAuthIdpConfigHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func TenantOAuthIdpConfigID(u *unstructured.Resource) (string, error)
- func TenantOAuthIdpConfigToUnstructured(r *dclService.TenantOAuthIdpConfig) *unstructured.Resource
- func TenantToUnstructured(r *dclService.Tenant) *unstructured.Resource
- func UnstructuredToConfig(u *unstructured.Resource) (*dclService.Config, error)
- func UnstructuredToOAuthIdpConfig(u *unstructured.Resource) (*dclService.OAuthIdpConfig, error)
- func UnstructuredToTenant(u *unstructured.Resource) (*dclService.Tenant, error)
- func UnstructuredToTenantOAuthIdpConfig(u *unstructured.Resource) (*dclService.TenantOAuthIdpConfig, error)
- type Config
- func (r *Config) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Config) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Config) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Config) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Config) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Config) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Config) ID(resource *unstructured.Resource) (string, error)
- func (r *Config) STV() unstructured.ServiceTypeVersion
- func (r *Config) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Config) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type OAuthIdpConfig
- func (r *OAuthIdpConfig) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *OAuthIdpConfig) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *OAuthIdpConfig) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *OAuthIdpConfig) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *OAuthIdpConfig) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *OAuthIdpConfig) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *OAuthIdpConfig) ID(resource *unstructured.Resource) (string, error)
- func (r *OAuthIdpConfig) STV() unstructured.ServiceTypeVersion
- func (r *OAuthIdpConfig) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *OAuthIdpConfig) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type Tenant
- func (r *Tenant) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Tenant) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Tenant) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Tenant) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Tenant) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Tenant) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Tenant) ID(resource *unstructured.Resource) (string, error)
- func (r *Tenant) STV() unstructured.ServiceTypeVersion
- func (r *Tenant) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Tenant) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type TenantOAuthIdpConfig
- func (r *TenantOAuthIdpConfig) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *TenantOAuthIdpConfig) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *TenantOAuthIdpConfig) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *TenantOAuthIdpConfig) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *TenantOAuthIdpConfig) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *TenantOAuthIdpConfig) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *TenantOAuthIdpConfig) ID(resource *unstructured.Resource) (string, error)
- func (r *TenantOAuthIdpConfig) STV() unstructured.ServiceTypeVersion
- func (r *TenantOAuthIdpConfig) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *TenantOAuthIdpConfig) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
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 ConfigToUnstructured ¶
func ConfigToUnstructured(r *dclService.Config) *unstructured.Resource
func DeleteConfig ¶
func DeleteOAuthIdpConfig ¶
func DeleteTenant ¶
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 ListTenant ¶
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 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 TenantOAuthIdpConfigToUnstructured ¶
func TenantOAuthIdpConfigToUnstructured(r *dclService.TenantOAuthIdpConfig) *unstructured.Resource
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) 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 (*Config) STV ¶
func (r *Config) STV() unstructured.ServiceTypeVersion
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)
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) Get ¶
func (r *OAuthIdpConfig) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
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 (r *OAuthIdpConfig) STV() unstructured.ServiceTypeVersion
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)
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) 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 (*Tenant) STV ¶
func (r *Tenant) STV() unstructured.ServiceTypeVersion
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)
type TenantOAuthIdpConfig ¶
type TenantOAuthIdpConfig struct{}
func (*TenantOAuthIdpConfig) Apply ¶
func (r *TenantOAuthIdpConfig) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*TenantOAuthIdpConfig) Delete ¶
func (r *TenantOAuthIdpConfig) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*TenantOAuthIdpConfig) Get ¶
func (r *TenantOAuthIdpConfig) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
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 (r *TenantOAuthIdpConfig) ID(resource *unstructured.Resource) (string, error)
func (*TenantOAuthIdpConfig) STV ¶
func (r *TenantOAuthIdpConfig) STV() unstructured.ServiceTypeVersion
func (*TenantOAuthIdpConfig) SetPolicy ¶
func (r *TenantOAuthIdpConfig) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*TenantOAuthIdpConfig) SetPolicyMember ¶
func (r *TenantOAuthIdpConfig) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)