Documentation
¶
Index ¶
- Variables
- func AvoidResourceSaverMode(ctx context.Context)
- func CheckFeatureIsEnabled(ctx context.Context, settingName string, label string) error
- type AuthResponse
- type DockerDesktopPaths
- type Feature
- type OAuthApp
- type OAuthScopes
- type RawClient
- type Secret
- type Secrets
- func (c *Secrets) DeleteJfsSecret(ctx context.Context, secret string) error
- func (c *Secrets) GetJfsPolicy(ctx context.Context) (string, error)
- func (c *Secrets) ListJfsSecrets(ctx context.Context) ([]StoredSecret, error)
- func (c *Secrets) SetJfsPolicy(ctx context.Context, body string) error
- func (c *Secrets) SetJfsSecret(ctx context.Context, secret Secret) error
- type StoredSecret
- type Tools
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientBackend = newRawClient(dialBackend)
View Source
var Paths = sync.OnceValue(func() DockerDesktopPaths { desktopPaths, err := getDockerDesktopPaths() if err != nil { panic(err) } return desktopPaths })
Functions ¶
func AvoidResourceSaverMode ¶
func CheckFeatureIsEnabled ¶
CheckFeatureIsEnabled verifies if a feature is enabled in either admin-settings.json or Docker Desktop settings. settingName is the setting name (e.g. "enableDockerMCPToolkit", "enableDockerAI", etc.) label is the human-readable name of the feature for error messages
Types ¶
type AuthResponse ¶
type DockerDesktopPaths ¶
type OAuthApp ¶
type OAuthApp struct { App string `json:"app"` Authorized bool `json:"authorized"` Provider string `json:"provider"` Scopes []OAuthScopes `json:"scopes,omitempty"` Tools []string `json:"tools"` }
type OAuthScopes ¶
type Secrets ¶
type Secrets struct {
// contains filtered or unexported fields
}
func NewSecretsClient ¶
func NewSecretsClient() *Secrets
func (*Secrets) DeleteJfsSecret ¶
func (*Secrets) ListJfsSecrets ¶
func (c *Secrets) ListJfsSecrets(ctx context.Context) ([]StoredSecret, error)
func (*Secrets) SetJfsPolicy ¶
type StoredSecret ¶
type Tools ¶
type Tools struct {
// contains filtered or unexported fields
}
func NewAuthClient ¶
func NewAuthClient() *Tools
func (*Tools) DeleteOAuthApp ¶
func (*Tools) ListOAuthApps ¶
func (*Tools) PostOAuthApp ¶
Click to show internal directories.
Click to hide internal directories.