package
0.69.0
Repository: https://github.com/cisco-open/fsoc.git
Documentation: pkg.go.dev

# Functions

DeleteContext deletes specified profile and updates the config file If the deleted context is the default one, xxx.
DeleteSubsystemSetting removes a subsystem-specific configuration value, without updating the config store or saving the file (see note on SetSubsystemSetting).
ForceSetActiveProfileName sets the name of the profile to the specified value.
GetContext.
GetCurrentContext returns the context (access profile) selected by the user for the particular invocation of the fsoc utility.
GetCurrentProfileName returns the profile name that is used to select the context.
GetDefaultContextName gets the default context name for the config file Note that the default context may be different from the active (current) context.
GetRegisteredSubsystems returns the names of subsystems that have registered a config template.
GetSubsytemConfig returns a pointer to config storage for a given subsystem.
ListAllContexts returns a list of all context names.
ListContexts returns a list of context names which begin with `prefix`, used for the command line autocompletion.
RegisterSubsystemConfigStorage registers storage (a pointer to a struct) for a subsystem's configuration.
RegisterTypeDecodeHook registers a mapstructure type decode hook for subsystem- specific configuration types, primarily to enforce formats and parse directly into types that are convenient for the subsystems to use.
ReplaceCurrentContext updates the all values within the current context.
SetActiveProfile sets the name of the profile that should be used instead of the config file's current profile value.
SetDefaultContextName sets the default context name in the config file and updates the file.
SetSubsystemSetting updates a single value into the subsystem-specific settings of the context.
UpdateSubsystemConfigs updates the subsystem-specific configurations from the config context into subsystem-provided structured store.
UpsertContext updates or adds a context and updates the file The context pointer may or may not have been returned by GetContext()/GetCurrentContext().

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Use an agent principal.
Use JWT token directly.
Use for local setup.
No authentication (used in local/dev environments).
OAuth using the same user credentials as in a browser.
Use a service principal.
Use Session Manager (experimental).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

Struct Context defines a full configuration context (aka access profile).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author