func (t *Tokens) PostPDPKAuth(ctx context.Context, token string, sig *base64.Value) (string, error) {
	auth := authTokenResponse{}

	req, err := t.client.NewTokenRequest(token, "POST", "/tokens", nil,
		&authTokenPDPKARequest{Type: tokenTypeAuth, TokenSig: sig})
	if err != nil {
		log.Printf("Error building http request: %s", err)
		return auth.Token, err
	}

	_, err = t.client.Do(ctx, req, &auth)
	if err != nil {
		log.Printf("Error making api request: %s", err)
	}

	return auth.Token, err
}
// PostPDPKAuth requests an auth token from the registry for the provided login
// token value, and it's signature.
PostPDPKAuth requests an auth token from the registry for the provided login
token value, and it's signature.
// PostPDPKAuth requests an auth token from the registry for the provided login // token value and it ' s signature .
func (t *Tokens) PostPDPKAuth(ctx context.Context, token string, sig *base64.Value) (string, error) {
	auth := authTokenResponse{}
	req, err := t.client.NewTokenRequest(token, "POST", "/tokens", nil,
		&authTokenPDPKARequest{Type: tokenTypeAuth, TokenSig: sig})
	if err != nil {
		log.Printf("Error building http request: %s", err)
		return auth.Token, err
	}
	_, err = t.client.Do(ctx, req, &auth)
	if err != nil {
		log.Printf("Error making api request: %s", err)
	}
	return auth.Token, err
}
func ( t * Tokens ) PostPDPKAuth ( ctx context . Context , token string , sig * base64 . Value ) ( string , error ) { auth := authTokenResponse { } req , err := t . client . NewTokenRequest ( token , " " , " " , nil , & authTokenPDPKARequest { Type : tokenTypeAuth , TokenSig : sig } ) if err != nil { log . Printf ( " " , err ) return auth . Token , err } _ , err = t . client . Do ( ctx , req , & auth ) if err != nil { log . Printf ( " " , err ) } return auth . Token , err }
PostPDPKAuth requests an auth token from the registry for the provided login
token value, and it's signature.
PostPDPKAuth requests an auth token from the registry for the provided login token value and it ' s signature .