tharsisfederated

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Subject            string `json:"subject"`
	ServiceAccountPath string `json:"serviceAccountPath"`
}

Data contains the data fields specific to this managed identity type

type Delegate

type Delegate struct {
	// contains filtered or unexported fields
}

Delegate for the Tharsis OIDC Federated managed identity type

func New

func New(ctx context.Context, jwsProvider jwsprovider.JWSProvider, issuerURL string) (*Delegate, error)

New creates a new Delegate instance

func (*Delegate) CreateCredentials

func (d *Delegate) CreateCredentials(ctx context.Context, identity *models.ManagedIdentity, job *models.Job) ([]byte, error)

CreateCredentials returns a signed JWT token for the managed identity

func (*Delegate) SetManagedIdentityData

func (d *Delegate) SetManagedIdentityData(ctx context.Context, managedIdentity *models.ManagedIdentity, input []byte) error

SetManagedIdentityData updates the managed identity custom data payload

type InputData

type InputData struct {
	ServiceAccountPath string `json:"serviceAccountPath"`
}

InputData contains the input data fields specific to this managed identity type

Jump to

Keyboard shortcuts

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