Documentation
¶
Index ¶
- func GetAuthConfig(ctx context.Context, client *volcengine.Client, workspaceID, branchID string) (map[string]interface{}, error)
- func RunVolcengineGet(ctx context.Context, client *volcengine.Client, workspaceID, branchID string, ...) error
- func RunVolcengineSet(ctx context.Context, client *volcengine.Client, workspaceID, branchID string, ...) error
- func SetAuthConfig(ctx context.Context, client *volcengine.Client, workspaceID, branchID string, ...) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthConfig ¶
func GetAuthConfig(ctx context.Context, client *volcengine.Client, workspaceID, branchID string) (map[string]interface{}, error)
GetAuthConfig fetches Auth config via the Auth Admin API.
func RunVolcengineGet ¶
func RunVolcengineGet(ctx context.Context, client *volcengine.Client, workspaceID, branchID string, keys []string) error
RunVolcengineGet retrieves Auth general config and outputs to stdout. If keys is empty, all config is output; otherwise only the specified keys.
func RunVolcengineSet ¶
func RunVolcengineSet(ctx context.Context, client *volcengine.Client, workspaceID, branchID string, pairs []string, fromJSON string, fsys afero.Fs) error
RunVolcengineSet modifies Auth general config. pairs are positional arguments in KEY=VALUE format; fromJSON is an optional JSON file path.
func SetAuthConfig ¶
func SetAuthConfig(ctx context.Context, client *volcengine.Client, workspaceID, branchID string, patch map[string]interface{}) (map[string]interface{}, error)
SetAuthConfig applies patch to the Auth general config and returns the resulting values for the patched keys. Data-layer helper shared by the CLI (RunVolcengineSet) and the MCP server, so neither has to duplicate the Auth Admin API call.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.