client

package
v0.1.0-notokenalpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlushBufferOnExit

func FlushBufferOnExit(logger *zap.Logger)

func GetLogger

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

Types

type AadClient

type AadClient interface {
	GetAadToken(ctx context.Context, azureConfig *datamodel.AzureConfig, resource string) (string, error)
}

func NewAadClient

func NewAadClient(reader fileReader, logger *zap.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 *zap.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 *zap.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