server

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: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() error

Types

type AzureClient

type AzureClient interface {
	GetTokenCredential(azureConfig *datamodel.KubeletAzureJSON) (azcore.TokenCredential, error)
	GetVMPropertiesByID(ctx context.Context, credential azcore.TokenCredential, resourceID string) (string, map[string]interface{}, error)
}

func NewAzureClient

func NewAzureClient(log *logrus.Entry) AzureClient

type AzureClientImpl

type AzureClientImpl struct {
	Logger *logrus.Entry
}

func (*AzureClientImpl) GetTokenCredential

func (c *AzureClientImpl) GetTokenCredential(azureConfig *datamodel.KubeletAzureJSON) (azcore.TokenCredential, error)

func (*AzureClientImpl) GetVMPropertiesByID

func (c *AzureClientImpl) GetVMPropertiesByID(
	ctx context.Context,
	credential azcore.TokenCredential,
	resourceID string) (string, map[string]interface{}, error)

type TLSBootstrapServer

type TLSBootstrapServer struct {
	AzureClient AzureClient

	SignerHostName   string
	AllowedClientIds []string

	JwksURL string
	Log     *logrus.Entry

	RootCertPath         string
	IntermediateCertPath string

	pb.UnimplementedAKSBootstrapTokenRequestServer
	// contains filtered or unexported fields
}

func (*TLSBootstrapServer) GetNonce

func (s *TLSBootstrapServer) GetNonce(ctx context.Context, nonceRequest *pb.NonceRequest) (*pb.NonceResponse, error)

func (*TLSBootstrapServer) GetToken

func (s *TLSBootstrapServer) GetToken(ctx context.Context, tokenRequest *pb.TokenRequest) (*pb.TokenResponse, error)

func (*TLSBootstrapServer) ValidateToken

func (s *TLSBootstrapServer) ValidateToken(ctx context.Context) (context.Context, error)

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