client

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(format string, debug bool) *logrus.Logger

Types

type AadClient

type AadClient interface {
	GetAadToken(ctx context.Context, clientID, clientSecret, tenantID, resource string) (string, error)
}

func NewAadClient

func NewAadClient(logger *logrus.Logger) AadClient

type ImdsClient

type ImdsClient interface {
	GetMSIToken(ctx context.Context, imdsURL, clientID, resource string) (*datamodel.AADTokenResponse, error)
	GetInstanceData(ctx context.Context, imdsURL string) (*datamodel.VMSSInstanceData, error)
	GetAttestedData(ctx context.Context, imdsURL, nonce string) (*datamodel.VMSSAttestedData, error)
}

func NewImdsClient

func NewImdsClient(logger *logrus.Logger) ImdsClient

type SecureTLSBootstrapClientOpts

type SecureTLSBootstrapClientOpts struct {
	CustomClientID string
	NextProto      string
	AADResource    string
	LogFormat      string
	Verbose        bool
}

func (SecureTLSBootstrapClientOpts) Validate

func (o SecureTLSBootstrapClientOpts) Validate() error

type TLSBootstrapClient

type TLSBootstrapClient interface {
	GetBootstrapToken(ctx context.Context) (string, error)
}

TLSBootstrapClient retrieves tokens for performing node TLS bootstrapping.

func NewTLSBootstrapClient

func NewTLSBootstrapClient(logger *logrus.Logger, opts SecureTLSBootstrapClientOpts) 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