gkehub

package
v1.53.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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.

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.

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.

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

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 ApplyFleet

func ApplyFleet(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 DeleteFeature(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteFeatureMembership

func DeleteFeatureMembership(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteFleet

func DeleteFleet(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func DeleteMembership

func DeleteMembership(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error

func FeatureHasDiff

func FeatureHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func FeatureID

func FeatureID(u *unstructured.Resource) (string, 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 FleetHasDiff

func FleetHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func FleetID

func FleetID(u *unstructured.Resource) (string, error)

func FleetToUnstructured

func FleetToUnstructured(r *dclService.Fleet) *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 GetFleet

func GetFleet(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 ListFeature(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)

func ListFeatureMembership

func ListFeatureMembership(ctx context.Context, config *dcl.Config, project string, location string, feature string) ([]*unstructured.Resource, error)

func ListMembership

func ListMembership(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)

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 UnstructuredToFleet

func UnstructuredToFleet(u *unstructured.Resource) (*dclService.Fleet, 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) Delete

func (r *Feature) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*Feature) DeletePolicyMember added in v1.1.0

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 (r *Feature) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*Feature) HasDiff

func (r *Feature) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*Feature) ID

func (r *Feature) ID(resource *unstructured.Resource) (string, error)

func (*Feature) STV

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 added in v1.1.0

func (r *Feature) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *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) DeletePolicyMember added in v1.1.0

func (r *FeatureMembership) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*FeatureMembership) Get

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 (*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)

func (*FeatureMembership) SetPolicyWithEtag added in v1.1.0

func (r *FeatureMembership) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

type Fleet

type Fleet struct{}

func (*Fleet) Apply

func (r *Fleet) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)

func (*Fleet) Delete

func (r *Fleet) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error

func (*Fleet) DeletePolicyMember added in v1.1.0

func (r *Fleet) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error

func (*Fleet) Get

func (r *Fleet) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Fleet) GetPolicy

func (r *Fleet) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)

func (*Fleet) GetPolicyMember

func (r *Fleet) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func (*Fleet) HasDiff

func (r *Fleet) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)

func (*Fleet) ID

func (r *Fleet) ID(resource *unstructured.Resource) (string, error)

func (*Fleet) STV

func (*Fleet) SetPolicy

func (r *Fleet) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)

func (*Fleet) SetPolicyMember

func (r *Fleet) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)

func (*Fleet) SetPolicyWithEtag added in v1.1.0

func (r *Fleet) 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 (*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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL