client

package
v0.1.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExecCredential

func GetExecCredential(logger *logrus.Logger) (*datamodel.ExecCredential, error)

Types

type AadClient

type AadClient interface {
	GetAadToken(clientID, clientSecret, tenantID string, scopes []string) (string, error)
}

func NewAadClient

func NewAadClient(logger *logrus.Logger) AadClient

type ImdsClient

type ImdsClient interface {
	GetMSIToken(clientID string) (*datamodel.TokenResponseJSON, error)
	GetInstanceData() (*datamodel.VmssInstanceData, error)
	GetAttestedData(nonce string) (*datamodel.VmssAttestedData, error)
	SetImdsURL(imdsURL string)
}

func NewImdsClient

func NewImdsClient(logger *logrus.Logger, imdsURL string) ImdsClient

type TLSBootstrapClient

type TLSBootstrapClient interface {
	GetBootstrapToken() (string, error)
}

func NewTLSBootstrapClient

func NewTLSBootstrapClient(logger *logrus.Logger, clientID, nextProto string) TLSBootstrapClient

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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