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.
Index ¶
- func ApplyFeature(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplyFeatureMembership(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 DeleteFeature(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteFeatureMembership(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteMembership(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func FeatureHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func FeatureID(u *unstructured.Resource) (string, error)
- func FeatureMembershipHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func FeatureMembershipID(u *unstructured.Resource) (string, error)
- func FeatureMembershipToUnstructured(r *dclService.FeatureMembership) *unstructured.Resource
- func FeatureToUnstructured(r *dclService.Feature) *unstructured.Resource
- func GetFeature(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetFeatureMembership(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 ListFeature(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func ListFeatureMembership(ctx context.Context, config *dcl.Config, project string, location string, ...) ([]*unstructured.Resource, error)
- func ListMembership(ctx context.Context, config *dcl.Config, project string, location 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 UnstructuredToFeature(u *unstructured.Resource) (*dclService.Feature, error)
- func UnstructuredToFeatureMembership(u *unstructured.Resource) (*dclService.FeatureMembership, error)
- func UnstructuredToMembership(u *unstructured.Resource) (*dclService.Membership, error)
- type Feature
- func (r *Feature) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Feature) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Feature) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Feature) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Feature) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Feature) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Feature) ID(resource *unstructured.Resource) (string, error)
- func (r *Feature) STV() unstructured.ServiceTypeVersion
- func (r *Feature) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Feature) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type FeatureMembership
- func (r *FeatureMembership) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *FeatureMembership) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *FeatureMembership) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *FeatureMembership) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *FeatureMembership) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *FeatureMembership) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *FeatureMembership) ID(resource *unstructured.Resource) (string, error)
- func (r *FeatureMembership) STV() unstructured.ServiceTypeVersion
- func (r *FeatureMembership) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *FeatureMembership) SetPolicyMember(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) 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFeature ¶
func ApplyFeature(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplyFeatureMembership ¶
func ApplyFeatureMembership(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 DeleteFeature ¶
func DeleteFeatureMembership ¶
func DeleteMembership ¶
func FeatureHasDiff ¶
func FeatureHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func FeatureMembershipHasDiff ¶
func FeatureMembershipHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func FeatureMembershipID ¶
func FeatureMembershipID(u *unstructured.Resource) (string, error)
func FeatureMembershipToUnstructured ¶
func FeatureMembershipToUnstructured(r *dclService.FeatureMembership) *unstructured.Resource
func FeatureToUnstructured ¶
func FeatureToUnstructured(r *dclService.Feature) *unstructured.Resource
func GetFeature ¶
func GetFeature(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetFeatureMembership ¶
func GetFeatureMembership(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 ListFeature ¶
func ListFeatureMembership ¶
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 UnstructuredToFeature ¶
func UnstructuredToFeature(u *unstructured.Resource) (*dclService.Feature, error)
func UnstructuredToFeatureMembership ¶
func UnstructuredToFeatureMembership(u *unstructured.Resource) (*dclService.FeatureMembership, error)
func UnstructuredToMembership ¶
func UnstructuredToMembership(u *unstructured.Resource) (*dclService.Membership, error)
Types ¶
type Feature ¶
type Feature struct{}
func (*Feature) Apply ¶
func (r *Feature) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Feature) Get ¶
func (r *Feature) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Feature) GetPolicy ¶
func (r *Feature) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Feature) GetPolicyMember ¶
func (*Feature) STV ¶
func (r *Feature) STV() unstructured.ServiceTypeVersion
func (*Feature) SetPolicy ¶
func (r *Feature) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Feature) SetPolicyMember ¶
func (r *Feature) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
type FeatureMembership ¶
type FeatureMembership struct{}
func (*FeatureMembership) Apply ¶
func (r *FeatureMembership) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*FeatureMembership) Delete ¶
func (r *FeatureMembership) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
func (*FeatureMembership) Get ¶
func (r *FeatureMembership) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*FeatureMembership) GetPolicy ¶
func (r *FeatureMembership) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*FeatureMembership) GetPolicyMember ¶
func (r *FeatureMembership) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)
func (*FeatureMembership) HasDiff ¶
func (r *FeatureMembership) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func (*FeatureMembership) ID ¶
func (r *FeatureMembership) ID(resource *unstructured.Resource) (string, error)
func (*FeatureMembership) STV ¶
func (r *FeatureMembership) STV() unstructured.ServiceTypeVersion
func (*FeatureMembership) SetPolicy ¶
func (r *FeatureMembership) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*FeatureMembership) SetPolicyMember ¶
func (r *FeatureMembership) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *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) 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)