privateca

package
v1.76.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

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.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyCaPool

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

func ApplyCertificate

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

func ApplyCertificateAuthority

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

func ApplyCertificateTemplate

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

func CaPoolHasDiff

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

func CaPoolID

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

func CaPoolToUnstructured

func CaPoolToUnstructured(r *dclService.CaPool) *unstructured.Resource

func CertificateAuthorityHasDiff

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

func CertificateAuthorityID

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

func CertificateHasDiff

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

func CertificateID

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

func CertificateTemplateHasDiff

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

func CertificateTemplateID

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

func CertificateTemplateToUnstructured

func CertificateTemplateToUnstructured(r *dclService.CertificateTemplate) *unstructured.Resource

func CertificateToUnstructured

func CertificateToUnstructured(r *dclService.Certificate) *unstructured.Resource

func DeleteCaPool

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

func DeleteCertificate

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

func DeleteCertificateAuthority

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

func DeleteCertificateTemplate

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

func GetCaPool

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

func GetCertificate

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

func GetCertificateAuthority

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

func GetCertificateTemplate

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

func ListCaPool

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

func ListCertificate

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

func ListCertificateAuthority

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

func ListCertificateTemplate

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

func UnstructuredToCaPool

func UnstructuredToCaPool(u *unstructured.Resource) (*dclService.CaPool, error)

func UnstructuredToCertificate

func UnstructuredToCertificate(u *unstructured.Resource) (*dclService.Certificate, error)

func UnstructuredToCertificateAuthority

func UnstructuredToCertificateAuthority(u *unstructured.Resource) (*dclService.CertificateAuthority, error)

func UnstructuredToCertificateTemplate

func UnstructuredToCertificateTemplate(u *unstructured.Resource) (*dclService.CertificateTemplate, error)

Types

type CaPool

type CaPool struct{}

func (*CaPool) Apply

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

func (*CaPool) Delete

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

func (*CaPool) DeletePolicyMember added in v1.1.0

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

func (*CaPool) Get

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

func (*CaPool) GetPolicy

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

func (*CaPool) GetPolicyMember

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

func (*CaPool) HasDiff

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

func (*CaPool) ID

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

func (*CaPool) STV

func (*CaPool) SetPolicy

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

func (*CaPool) SetPolicyMember

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

func (*CaPool) SetPolicyWithEtag added in v1.1.0

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

type Certificate

type Certificate struct{}

func (*Certificate) Apply

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

func (*Certificate) Delete

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

func (*Certificate) DeletePolicyMember added in v1.1.0

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

func (*Certificate) Get

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

func (*Certificate) GetPolicy

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

func (*Certificate) GetPolicyMember

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

func (*Certificate) HasDiff

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

func (*Certificate) ID

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

func (*Certificate) STV

func (*Certificate) SetPolicy

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

func (*Certificate) SetPolicyMember

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

func (*Certificate) SetPolicyWithEtag added in v1.1.0

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

type CertificateAuthority

type CertificateAuthority struct{}

func (*CertificateAuthority) Apply

func (*CertificateAuthority) Delete

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

func (*CertificateAuthority) DeletePolicyMember added in v1.1.0

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

func (*CertificateAuthority) Get

func (*CertificateAuthority) GetPolicy

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

func (*CertificateAuthority) GetPolicyMember

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

func (*CertificateAuthority) HasDiff

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

func (*CertificateAuthority) ID

func (*CertificateAuthority) STV

func (*CertificateAuthority) SetPolicy

func (*CertificateAuthority) SetPolicyMember

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

func (*CertificateAuthority) SetPolicyWithEtag added in v1.1.0

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

type CertificateTemplate

type CertificateTemplate struct{}

func (*CertificateTemplate) Apply

func (*CertificateTemplate) Delete

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

func (*CertificateTemplate) DeletePolicyMember added in v1.1.0

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

func (*CertificateTemplate) Get

func (*CertificateTemplate) GetPolicy

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

func (*CertificateTemplate) GetPolicyMember

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

func (*CertificateTemplate) HasDiff

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

func (*CertificateTemplate) ID

func (*CertificateTemplate) STV

func (*CertificateTemplate) SetPolicy

func (*CertificateTemplate) SetPolicyMember

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

func (*CertificateTemplate) SetPolicyWithEtag added in v1.1.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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