Documentation
¶
Index ¶
- Constants
- func Read(ctx context.Context, store runtimetypes.Store, key string) string
- func ReadConfig(ctx context.Context, store runtimetypes.Store, workspaceID, key string) (string, string)
- func ReadHITLPolicy(ctx context.Context, store runtimetypes.Store) string
- func SetHITLPolicy(ctx context.Context, store runtimetypes.Store, name string) error
- func SetString(ctx context.Context, store runtimetypes.Store, key, value string) error
- func WriteConfig(ctx context.Context, store runtimetypes.Store, workspaceID, key, value string) error
Constants ¶
View Source
const Prefix = "cli."
Variables ¶
This section is empty.
Functions ¶
func ReadConfig ¶
func ReadConfig(ctx context.Context, store runtimetypes.Store, workspaceID, key string) (string, string)
ReadConfig reads key using workspace scope with global fallback for workspace-scoped keys. Returns (value, "workspace"|"global").
func ReadHITLPolicy ¶
func ReadHITLPolicy(ctx context.Context, store runtimetypes.Store) string
func SetHITLPolicy ¶
func WriteConfig ¶
func WriteConfig(ctx context.Context, store runtimetypes.Store, workspaceID, key, value string) error
WriteConfig writes key to workspace scope for workspace-scoped keys, global scope otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.