networksecurity

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyAuthorizationPolicy

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

func ApplyClientTlsPolicy

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

func ApplyServerTlsPolicy

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

func AuthorizationPolicyHasDiff

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

func AuthorizationPolicyID

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

func AuthorizationPolicyToUnstructured

func AuthorizationPolicyToUnstructured(r *dclService.AuthorizationPolicy) *unstructured.Resource

func ClientTlsPolicyHasDiff

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

func ClientTlsPolicyID

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

func ClientTlsPolicyToUnstructured

func ClientTlsPolicyToUnstructured(r *dclService.ClientTlsPolicy) *unstructured.Resource

func DeleteAuthorizationPolicy

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

func DeleteClientTlsPolicy

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

func DeletePolicyMemberAuthorizationPolicy added in v1.1.0

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

func DeletePolicyMemberClientTlsPolicy added in v1.1.0

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

func DeletePolicyMemberServerTlsPolicy added in v1.1.0

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

func DeleteServerTlsPolicy

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

func GetAuthorizationPolicy

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

func GetClientTlsPolicy

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

func GetPolicyAuthorizationPolicy

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

func GetPolicyClientTlsPolicy

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

func GetPolicyMemberAuthorizationPolicy

func GetPolicyMemberAuthorizationPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func GetPolicyMemberClientTlsPolicy

func GetPolicyMemberClientTlsPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func GetPolicyMemberServerTlsPolicy

func GetPolicyMemberServerTlsPolicy(ctx context.Context, config *dcl.Config, u *unstructured.Resource, role, member string) (*unstructured.Resource, error)

func GetPolicyServerTlsPolicy

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

func GetServerTlsPolicy

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

func ListAuthorizationPolicy

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

func ListClientTlsPolicy

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

func ListServerTlsPolicy

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

func ServerTlsPolicyHasDiff

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

func ServerTlsPolicyID

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

func ServerTlsPolicyToUnstructured

func ServerTlsPolicyToUnstructured(r *dclService.ServerTlsPolicy) *unstructured.Resource

func SetPolicyAuthorizationPolicy

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

func SetPolicyMemberAuthorizationPolicy

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

func SetPolicyMemberClientTlsPolicy

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

func SetPolicyMemberServerTlsPolicy

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

func SetPolicyWithEtagAuthorizationPolicy added in v1.1.0

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

func SetPolicyWithEtagClientTlsPolicy added in v1.1.0

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

func SetPolicyWithEtagServerTlsPolicy added in v1.1.0

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

func UnstructuredToAuthorizationPolicy

func UnstructuredToAuthorizationPolicy(u *unstructured.Resource) (*dclService.AuthorizationPolicy, error)

func UnstructuredToClientTlsPolicy

func UnstructuredToClientTlsPolicy(u *unstructured.Resource) (*dclService.ClientTlsPolicy, error)

func UnstructuredToServerTlsPolicy

func UnstructuredToServerTlsPolicy(u *unstructured.Resource) (*dclService.ServerTlsPolicy, error)

Types

type AuthorizationPolicy

type AuthorizationPolicy struct{}

func (*AuthorizationPolicy) Apply

func (*AuthorizationPolicy) Delete

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

func (*AuthorizationPolicy) DeletePolicyMember added in v1.1.0

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

func (*AuthorizationPolicy) Get

func (*AuthorizationPolicy) GetPolicy

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

func (*AuthorizationPolicy) GetPolicyMember

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

func (*AuthorizationPolicy) HasDiff

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

func (*AuthorizationPolicy) ID

func (*AuthorizationPolicy) STV

func (*AuthorizationPolicy) SetPolicy

func (*AuthorizationPolicy) SetPolicyMember

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

func (*AuthorizationPolicy) SetPolicyWithEtag added in v1.1.0

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

type ClientTlsPolicy

type ClientTlsPolicy struct{}

func (*ClientTlsPolicy) Apply

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

func (*ClientTlsPolicy) Delete

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

func (*ClientTlsPolicy) DeletePolicyMember added in v1.1.0

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

func (*ClientTlsPolicy) Get

func (*ClientTlsPolicy) GetPolicy

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

func (*ClientTlsPolicy) GetPolicyMember

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

func (*ClientTlsPolicy) HasDiff

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

func (*ClientTlsPolicy) ID

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

func (*ClientTlsPolicy) STV

func (*ClientTlsPolicy) SetPolicy

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

func (*ClientTlsPolicy) SetPolicyMember

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

func (*ClientTlsPolicy) SetPolicyWithEtag added in v1.1.0

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

type ServerTlsPolicy

type ServerTlsPolicy struct{}

func (*ServerTlsPolicy) Apply

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

func (*ServerTlsPolicy) Delete

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

func (*ServerTlsPolicy) DeletePolicyMember added in v1.1.0

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

func (*ServerTlsPolicy) Get

func (*ServerTlsPolicy) GetPolicy

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

func (*ServerTlsPolicy) GetPolicyMember

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

func (*ServerTlsPolicy) HasDiff

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

func (*ServerTlsPolicy) ID

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

func (*ServerTlsPolicy) STV

func (*ServerTlsPolicy) SetPolicy

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

func (*ServerTlsPolicy) SetPolicyMember

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

func (*ServerTlsPolicy) SetPolicyWithEtag added in v1.1.0

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