networkservices

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyEndpointPolicy

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

func DeleteEndpointPolicy

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

func EndpointPolicyHasDiff

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

func EndpointPolicyID

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

func EndpointPolicyToUnstructured

func EndpointPolicyToUnstructured(r *dclService.EndpointPolicy) *unstructured.Resource

func GetEndpointPolicy

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

func ListEndpointPolicy

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

func UnstructuredToEndpointPolicy

func UnstructuredToEndpointPolicy(u *unstructured.Resource) (*dclService.EndpointPolicy, error)

Types

type EndpointPolicy

type EndpointPolicy struct{}

func (*EndpointPolicy) Apply

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

func (*EndpointPolicy) Delete

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

func (*EndpointPolicy) DeletePolicyMember added in v1.1.0

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

func (*EndpointPolicy) Get

func (*EndpointPolicy) GetPolicy

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

func (*EndpointPolicy) GetPolicyMember

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

func (*EndpointPolicy) HasDiff

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

func (*EndpointPolicy) ID

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

func (*EndpointPolicy) STV

func (*EndpointPolicy) SetPolicy

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

func (*EndpointPolicy) SetPolicyMember

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

func (*EndpointPolicy) SetPolicyWithEtag added in v1.1.0

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