Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct { AccessToken string // contains filtered or unexported fields }
func (*APIClient) GetPrincipals ¶
type Config ¶
type Config struct { // HTTPClient is a custom HTTP client HTTPClient *http.Client // Debug enables debug-level logging Debug bool // BaseURL sets a custom API server base URL BaseURL *url.URL AccessToken string }
APIConfig defines the available configuration options to customize the API client settings
type PrincipalAPI ¶
type PrincipalAPI interface {
GetPrincipals(ctx context.Context) (*PrincipalList, *http.Response, error)
}
func NewPrincipalAPIClient ¶
func NewPrincipalAPIClient(cfg *Config) PrincipalAPI
NewPrincipalAPIClient returns a new v1 API client using a custom config
type PrincipalList ¶
type RbacAPI ¶
type RbacAPI struct {
PrincipalAPI func() PrincipalAPI
}
Click to show internal directories.
Click to hide internal directories.