client

package
v0.0.0-...-2e9186d Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetKubeConfig(tenantID, runtimeID string) (string, error)
}

Client is the interface to interact with the kubeconfig-service as an HTTP client using OIDC ID token in JWT format.

func NewClient

func NewClient(ctx context.Context, url string, auth oauth2.TokenSource) Client

NewClient constructs and returns new Client for kubeconfig-service It takes the following arguments:

  • ctx : context in which the http request will be executed
  • url : base url of the kubeconfig-service API
  • auth : TokenSource object which provides the ID token for the HTTP request

Jump to

Keyboard shortcuts

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