v1

package
v0.84.1-rc7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MPL-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package v1 defines methods for managing various authentication data. Note that it is not intended for managing sdk.Client JWT, but rather things like agent credentials or AWS IAM ids.

Index

Constants

View Source
const (
	QueryKeyName = "name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

type Endpoints interface {
	GetDataExportIAMRoleIDs(ctx context.Context) (*IAMRoleIDs, error)
	GetDirectIAMRoleIDs(ctx context.Context, project, directName string) (*IAMRoleIDs, error)
	// GetAgentCredentials retrieves manifest.KindAgent credentials.
	GetAgentCredentials(ctx context.Context, project, agentsName string) (creds M2MAppCredentials, err error)
}

func NewEndpoints

func NewEndpoints(client endpointsHelpers.Client) Endpoints

type IAMRoleIDs

type IAMRoleIDs struct {
	ExternalID string `json:"externalID"`
	AccountID  string `json:"accountID"`
}

type M2MAppCredentials

type M2MAppCredentials struct {
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
}

Jump to

Keyboard shortcuts

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