package types

import "github.com/edgexfoundry/go-mod-secrets/pkg/types"

Index

Types

type AuthenticationInfo

type AuthenticationInfo struct {
	AuthType  string
	AuthToken string
}

AuthenticationInfo contains authentication information to be used when communicating with an HTTP based provider

type SecretConfig

type SecretConfig struct {
	Host string
	Port int
	// Path is the base path to the secret's location in the secret store
	Path                    string
	Protocol                string
	Namespace               string
	RootCaCertPath          string
	ServerName              string
	Authentication          AuthenticationInfo
	AdditionalRetryAttempts int
	RetryWaitPeriod         string
	RetryWaitPeriodTime     time.Duration
}

SecretConfig contains configuration settings used to communicate with an HTTP based secret provider

func (SecretConfig) BuildSecretsPathURL

func (c SecretConfig) BuildSecretsPathURL(subPath string) (url string, err error)

BuildSecretsPathURL constructs a URL which can be used to identify a secret's path subPath is the location of the secrets in the secrets engine

func (SecretConfig) BuildURL

func (c SecretConfig) BuildURL(path string) (spURL string, err error)

BuildURL constructs a URL which can be used to identify a HTTP based secret provider

Source Files

config.go

Version
v0.0.33 (latest)
Published
Jan 19, 2021
Platform
linux/amd64
Imports
4 packages
Last checked
5 days ago

Tools for package owners.