Documentation ¶
Index ¶
- func Run() error
- type AzureClient
- type AzureClientImpl
- type TLSBootstrapServer
- func (s *TLSBootstrapServer) GetNonce(ctx context.Context, nonceRequest *pb.NonceRequest) (*pb.NonceResponse, error)
- func (s *TLSBootstrapServer) GetToken(ctx context.Context, tokenRequest *pb.TokenRequest) (*pb.TokenResponse, error)
- func (s *TLSBootstrapServer) ValidateToken(ctx context.Context) (context.Context, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 NewServer ¶
func NewServer(s *TLSBootstrapServer) (*TLSBootstrapServer, error)
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 ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.