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.
Index ¶
- func ApplyGroup(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyMembership(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func DeleteGroup(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteMembership(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetGroup(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetMembership(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GroupHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func GroupID(u *unstructured.Resource) (string, error)
- func GroupToUnstructured(r *dclService.Group) *unstructured.Resource
- func ListGroup(ctx context.Context, config *dcl.Config, parent string) ([]*unstructured.Resource, error)
- func ListMembership(ctx context.Context, config *dcl.Config, group string) ([]*unstructured.Resource, error)
- func MembershipHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func MembershipID(u *unstructured.Resource) (string, error)
- func MembershipToUnstructured(r *dclService.Membership) *unstructured.Resource
- func UnstructuredToGroup(u *unstructured.Resource) (*dclService.Group, error)
- func UnstructuredToMembership(u *unstructured.Resource) (*dclService.Membership, error)
- type Group
- func (r *Group) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Group) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Group) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Group) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Group) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Group) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Group) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Group) ID(resource *unstructured.Resource) (string, error)
- func (r *Group) STV() unstructured.ServiceTypeVersion
- func (r *Group) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Group) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Group) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type Membership
- func (r *Membership) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Membership) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Membership) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Membership) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Membership) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Membership) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Membership) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Membership) ID(resource *unstructured.Resource) (string, error)
- func (r *Membership) STV() unstructured.ServiceTypeVersion
- func (r *Membership) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Membership) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Membership) 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 ApplyGroup ¶
func ApplyGroup(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyMembership ¶
func ApplyMembership(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func DeleteGroup ¶
func DeleteMembership ¶
func GetGroup ¶
func GetGroup(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetMembership ¶
func GetMembership(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GroupHasDiff ¶
func GroupHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func GroupToUnstructured ¶
func GroupToUnstructured(r *dclService.Group) *unstructured.Resource
func ListMembership ¶
func MembershipHasDiff ¶
func MembershipHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func MembershipID ¶
func MembershipID(u *unstructured.Resource) (string, error)
func MembershipToUnstructured ¶
func MembershipToUnstructured(r *dclService.Membership) *unstructured.Resource
func UnstructuredToGroup ¶
func UnstructuredToGroup(u *unstructured.Resource) (*dclService.Group, error)
func UnstructuredToMembership ¶
func UnstructuredToMembership(u *unstructured.Resource) (*dclService.Membership, error)
Types ¶
type Group ¶
type Group struct{}
func (*Group) Apply ¶
func (r *Group) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Group) DeletePolicyMember ¶ added in v1.1.0
func (r *Group) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Group) Get ¶
func (r *Group) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Group) GetPolicy ¶
func (r *Group) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Group) GetPolicyMember ¶
func (*Group) STV ¶
func (r *Group) STV() unstructured.ServiceTypeVersion
func (*Group) SetPolicy ¶
func (r *Group) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Group) SetPolicyMember ¶
func (r *Group) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Group) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Group) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type Membership ¶
type Membership struct{}
func (*Membership) Apply ¶
func (r *Membership) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Membership) Delete ¶
func (r *Membership) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*Membership) DeletePolicyMember ¶ added in v1.1.0
func (r *Membership) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Membership) Get ¶
func (r *Membership) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Membership) GetPolicy ¶
func (r *Membership) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Membership) GetPolicyMember ¶
func (r *Membership) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*Membership) HasDiff ¶
func (r *Membership) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*Membership) ID ¶
func (r *Membership) ID(resource *unstructured.Resource) (string, error)
func (*Membership) STV ¶
func (r *Membership) STV() unstructured.ServiceTypeVersion
func (*Membership) SetPolicy ¶
func (r *Membership) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Membership) SetPolicyMember ¶
func (r *Membership) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Membership) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Membership) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)