vsign

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cfg *Config) (endpoint.Connector, error)

NewClient returns a connector for either Trust Protection Platform (TPP) configuration. Config should have Credentials compatible with the selected ConnectorType. Returned connector is a concurrency-safe interface to TPP that can be reused without restriction.

Types

type Config

type Config struct {
	// ConnectorType specify what do you want to use. May be "TPP".
	ConnectorType endpoint.ConnectorType
	// BaseUrl should be specified for Venafi Platform.
	BaseUrl string
	// Project is name of a CodeSign Protect project in Venafi Platform. For TPP, if necessary, escape backslash symbols.   For example,  "test\\zone" or `test\zone`.
	Project string
	// Credentials should contain either User and Password for TPP connections.
	Credentials *endpoint.Authentication
	// ConnectionTrust  may contain a trusted CA or certificate of server if you use self-signed certificate.
	ConnectionTrust string // *x509.CertPool
	LogVerbose      bool
	// http.Client to use during construction
	Client *http.Client
}

Config is a basic structure for high level initiating connector to Trust Platform (TPP)/Venafi Cloud

func BuildConfig

func BuildConfig(c context.Context, config string) (cfg Config, err error)

func BuildConfigWithAuth

func BuildConfigWithAuth(c context.Context, url string, cred *endpoint.Authentication, trust_bundle string) (cfg Config, err error)

func (*Config) GetKeyLabel

func (cfg *Config) GetKeyLabel() string

func (*Config) NewClient

func (cfg *Config) NewClient() (connector endpoint.Connector, err error)

NewClient returns a connector for the Trust Protection Platform (TPP) configuration. Config should have Credentials compatible with the selected ConnectorType. Returned connector is a concurrency-safe interface to TPP that can be reused without restriction.

Jump to

Keyboard shortcuts

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