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.
Index ¶
- func ApplyFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func DeleteFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeletePolicyMemberFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) error
- func FunctionHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func FunctionID(u *unstructured.Resource) (string, error)
- func FunctionToUnstructured(r *dclService.Function) *unstructured.Resource
- func GetFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetPolicyFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetPolicyMemberFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ListFunction(ctx context.Context, config *dcl.Config, project string, region string) ([]*unstructured.Resource, error)
- func SetPolicyFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyMemberFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func SetPolicyWithEtagFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func UnstructuredToFunction(u *unstructured.Resource) (*dclService.Function, error)
- type Function
- func (r *Function) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Function) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Function) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Function) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Function) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Function) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Function) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Function) ID(resource *unstructured.Resource) (string, error)
- func (r *Function) STV() unstructured.ServiceTypeVersion
- func (r *Function) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Function) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Function) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFunction ¶
func ApplyFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func DeleteFunction ¶
func DeletePolicyMemberFunction ¶ added in v1.1.0
func DeletePolicyMemberFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) error
func FunctionHasDiff ¶
func FunctionHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func FunctionID ¶
func FunctionID(u *unstructured.Resource) (string, error)
func FunctionToUnstructured ¶
func FunctionToUnstructured(r *dclService.Function) *unstructured.Resource
func GetFunction ¶
func GetFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetPolicyFunction ¶
func GetPolicyFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetPolicyMemberFunction ¶
func GetPolicyMemberFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func ListFunction ¶
func SetPolicyFunction ¶
func SetPolicyFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyMemberFunction ¶
func SetPolicyMemberFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, m *unstructured.Resource) (*unstructured.Resource, error)
func SetPolicyWithEtagFunction ¶ added in v1.1.0
func SetPolicyWithEtagFunction(ctx context.Context, config *dcl.Config, u *unstructured.Resource, p *unstructured.Resource) (*unstructured.Resource, error)
func UnstructuredToFunction ¶
func UnstructuredToFunction(u *unstructured.Resource) (*dclService.Function, error)
Types ¶
type Function ¶
type Function struct{}
func (*Function) Apply ¶
func (r *Function) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Function) DeletePolicyMember ¶ added in v1.1.0
func (r *Function) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Function) Get ¶
func (r *Function) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Function) GetPolicy ¶
func (r *Function) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Function) GetPolicyMember ¶
func (*Function) STV ¶
func (r *Function) STV() unstructured.ServiceTypeVersion
func (*Function) SetPolicy ¶
func (r *Function) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Function) SetPolicyMember ¶
func (r *Function) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Function) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Function) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
Click to show internal directories.
Click to hide internal directories.