networkconnectivity

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

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 DeleteHub

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

func DeleteSpoke

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

func GetHub

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 HubID

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

func HubToUnstructured

func HubToUnstructured(r *dclService.Hub) *unstructured.Resource

func ListHub

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

func ListSpoke

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

func SpokeHasDiff

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

func SpokeID

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

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

func (*Hub) HasDiff

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

func (*Hub) ID

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

func (*Hub) STV

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) Delete

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

func (*Spoke) HasDiff

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

func (*Spoke) ID

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

func (*Spoke) STV

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)

Jump to

Keyboard shortcuts

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