systemtrust

package
v1.494.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 11 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. By default, refName is used as the system and the default scope is applied. If refName contains "<scope>", the value before "<scope>" is used as the system and the value after "<scope>" is propagated as the scope.

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 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