tharsisfederated

package
v0.15.0 Latest Latest
Warning

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

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

Documentation

Overview

Package tharsisfederated package

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(_ context.Context, jwsProvider jws.Provider, 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(_ 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