systemtrust

package
v1.435.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 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, systemTrustConfiguration Configuration) (string, error)

GetToken requests a single token

func PrepareClient

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

PrepareClient adds the System Trust 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
}

Jump to

Keyboard shortcuts

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