types

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Copyright The Ratify Authors. 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

View Source
const (
	// KeyVaultUriParameter is the name of the key vault URI parameter
	KeyVaultUriParameter = "vaultURI"
	// CloudNameParameter is the name of the cloud name parameter
	CloudNameParameter = "cloudName"
	// TenantIDParameter is the name of the tenant ID parameter
	TenantIDParameter = "tenantID"
	// ClientIDParameter is the name of the client ID parameter
	// This clientID is used for workload identity
	ClientIDParameter = "clientID"
	// CertificatesParameter is the name of the objects parameter
	CertificatesParameter = "certificates"
	// Static string for certificate type
	CertificateType = "CERTIFICATE"

	// key of the certificate status property
	CertificatesStatus = "Certificates"
	// Static string for certificate name for the certificate status property
	CertificateName = "CertificateName"
	// Certificate version string for the certificate status property
	CertificateVersion = "Version"
	// Last refreshed string for the certificate status property
	CertificateLastRefreshed = "LastRefreshed"
)

This class is based on implementation from azure secret store csi provider Source: https://github.com/Azure/secrets-store-csi-driver-provider-azure/tree/release-1.4/pkg/provider

Variables

This section is empty.

Functions

func GetCertificates

func GetCertificates(parameters map[string]string) string

GetCertificates returns the key vault objects

func GetClientID

func GetClientID(parameters map[string]string) string

GetClientID returns the client ID

func GetCloudName

func GetCloudName(parameters map[string]string) string

GetCloudName returns the cloud name

func GetKeyVaultUri

func GetKeyVaultUri(parameters map[string]string) string

GetKeyVaultUri returns the key vault name

func GetTenantID

func GetTenantID(parameters map[string]string) string

GetTenantID returns the tenant ID

Types

type Certificate

type Certificate struct {
	Content         []byte
	CertificateName string
	Version         string
}

Certificate holds content and metadata of a keyvault certificate file

type KeyVaultCertificate

type KeyVaultCertificate struct {
	// the name of the Azure Key Vault certificate
	CertificateName string `json:"certificateName" yaml:"certificateName"`
	// the version of the Azure Key Vault certificate
	CertificateVersion string `json:"certificateVersion" yaml:"certificateVersion"`
}

KeyVaultCertificate holds keyvault certificate related config

type StringArray

type StringArray struct {
	Array []string `json:"array" yaml:"array"`
}

StringArray holds a list of strings

func GetCertificatesArray

func GetCertificatesArray(objects string) (StringArray, error)

GetCertificatesArray returns the key vault objects array

Jump to

Keyboard shortcuts

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