trustengine

package
v1.408.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(refName string, client *piperhttp.Client, trustEngineConfiguration Configuration) (string, error)

GetToken requests a single token

func PrepareClient

func PrepareClient(client *piperhttp.Client, trustEngineConfiguration Configuration) *piperhttp.Client

PrepareClient adds the Trust Engine authentication token to the client

Types

type Configuration

type Configuration struct {
	ServerURL           string
	TokenEndPoint       string
	TokenQueryParamName string
	Token               string
}

type Response

type Response struct {
	Secrets []Secret
}

type Secret

type Secret struct {
	Token  string
	System string
}

func GetSecrets

func GetSecrets(refNames []string, client *piperhttp.Client, trustEngineConfiguration Configuration) ([]Secret, error)

GetSecrets transforms the trust engine JSON response into trust engine secrets, and can be used to request multiple tokens

Jump to

Keyboard shortcuts

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