v1

package
v0.78.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 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 struct {
	// contains filtered or unexported fields
}

func NewEndpoints

func NewEndpoints(client endpoints.Client) Endpoints

func (Endpoints) GetAgentCredentials

func (e Endpoints) GetAgentCredentials(
	ctx context.Context,
	project, agentsName string,
) (creds M2MAppCredentials, err error)

GetAgentCredentials retrieves manifest.KindAgent credentials.

func (Endpoints) GetDataExportIAMRoleIDs

func (e Endpoints) GetDataExportIAMRoleIDs(ctx context.Context) (*IAMRoleIDs, error)

func (Endpoints) GetDirectIAMRoleIDs

func (e Endpoints) GetDirectIAMRoleIDs(ctx context.Context, project, directName string) (*IAMRoleIDs, error)

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