Documentation ¶
Overview ¶
Copyright 2024 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 2024 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 ApplyHub(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func ApplySpoke(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (*unstructured.Resource, error)
- func DeleteHub(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func DeleteSpoke(ctx context.Context, config *dcl.Config, u *unstructured.Resource) error
- func GetHub(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func GetSpoke(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
- func HubHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func HubID(u *unstructured.Resource) (string, error)
- func HubToUnstructured(r *dclService.Hub) *unstructured.Resource
- func ListHub(ctx context.Context, config *dcl.Config, project string) ([]*unstructured.Resource, error)
- func ListSpoke(ctx context.Context, config *dcl.Config, project string, location string) ([]*unstructured.Resource, error)
- func SpokeHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, ...) (bool, error)
- func SpokeID(u *unstructured.Resource) (string, error)
- func SpokeToUnstructured(r *dclService.Spoke) *unstructured.Resource
- func UnstructuredToHub(u *unstructured.Resource) (*dclService.Hub, error)
- func UnstructuredToSpoke(u *unstructured.Resource) (*dclService.Spoke, error)
- type Hub
- func (r *Hub) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Hub) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Hub) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Hub) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Hub) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Hub) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Hub) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Hub) ID(resource *unstructured.Resource) (string, error)
- func (r *Hub) STV() unstructured.ServiceTypeVersion
- func (r *Hub) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Hub) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Hub) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- type Spoke
- func (r *Spoke) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Spoke) Delete(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) error
- func (r *Spoke) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) error
- func (r *Spoke) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Spoke) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
- func (r *Spoke) GetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Spoke) HasDiff(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (bool, error)
- func (r *Spoke) ID(resource *unstructured.Resource) (string, error)
- func (r *Spoke) STV() unstructured.ServiceTypeVersion
- func (r *Spoke) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Spoke) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, ...) (*unstructured.Resource, error)
- func (r *Spoke) 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 ApplyHub ¶
func ApplyHub(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func ApplySpoke ¶
func ApplySpoke(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func DeleteSpoke ¶
func GetHub ¶
func GetHub(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func GetSpoke ¶
func GetSpoke(ctx context.Context, config *dcl.Config, u *unstructured.Resource) (*unstructured.Resource, error)
func HubHasDiff ¶
func HubHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func HubToUnstructured ¶
func HubToUnstructured(r *dclService.Hub) *unstructured.Resource
func SpokeHasDiff ¶
func SpokeHasDiff(ctx context.Context, config *dcl.Config, u *unstructured.Resource, opts ...dcl.ApplyOption) (bool, error)
func SpokeToUnstructured ¶
func SpokeToUnstructured(r *dclService.Spoke) *unstructured.Resource
func UnstructuredToHub ¶
func UnstructuredToHub(u *unstructured.Resource) (*dclService.Hub, error)
func UnstructuredToSpoke ¶
func UnstructuredToSpoke(u *unstructured.Resource) (*dclService.Spoke, error)
Types ¶
type Hub ¶
type Hub struct{}
func (*Hub) Apply ¶
func (r *Hub) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Hub) DeletePolicyMember ¶ added in v1.1.0
func (r *Hub) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Hub) Get ¶
func (r *Hub) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Hub) GetPolicy ¶
func (r *Hub) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Hub) GetPolicyMember ¶
func (*Hub) STV ¶
func (r *Hub) STV() unstructured.ServiceTypeVersion
func (*Hub) SetPolicy ¶
func (r *Hub) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Hub) SetPolicyMember ¶
func (r *Hub) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Hub) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Hub) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
type Spoke ¶
type Spoke struct{}
func (*Spoke) Apply ¶
func (r *Spoke) Apply(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, opts ...dcl.ApplyOption) (*unstructured.Resource, error)
func (*Spoke) DeletePolicyMember ¶ added in v1.1.0
func (r *Spoke) DeletePolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) error
func (*Spoke) Get ¶
func (r *Spoke) Get(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Spoke) GetPolicy ¶
func (r *Spoke) GetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource) (*unstructured.Resource, error)
func (*Spoke) GetPolicyMember ¶
func (*Spoke) STV ¶
func (r *Spoke) STV() unstructured.ServiceTypeVersion
func (*Spoke) SetPolicy ¶
func (r *Spoke) SetPolicy(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)
func (*Spoke) SetPolicyMember ¶
func (r *Spoke) SetPolicyMember(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, member *unstructured.Resource) (*unstructured.Resource, error)
func (*Spoke) SetPolicyWithEtag ¶ added in v1.1.0
func (r *Spoke) SetPolicyWithEtag(ctx context.Context, config *dcl.Config, resource *unstructured.Resource, policy *unstructured.Resource) (*unstructured.Resource, error)