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 Secret ¶
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
Click to show internal directories.
Click to hide internal directories.