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.
Index ¶
- func ApplyFeature(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 FeatureHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func FeatureID(u *unstructured.Resource) (string, error)
- func FeatureToUnstructured(r *dclService.Feature) *unstructured.Resource
- func GetFeature(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 UnstructuredToFeature(u *unstructured.Resource) (*dclService.Feature, 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) DeletePolicyMember(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)
- func (r *Feature) 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 ApplyFeature ¶
func ApplyFeature(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func DeleteFeature ¶
func FeatureHasDiff ¶
func FeatureHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
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 ListFeature ¶
func UnstructuredToFeature ¶
func UnstructuredToFeature(u *unstructured.Resource) (*dclService.Feature, 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) DeletePolicyMember ¶
func (r *Feature) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *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)
func (*Feature) SetPolicyWithEtag ¶
func (r *Feature) 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.