# Functions
BuildConfigFromFlags is a helper function that builds configs from a master url or a iamconfig filepath.
IsConfigurationInvalid returns true if the provided error indicates the configuration is invalid.
IsEmptyConfig returns true if the provided error indicates the provided configuration is empty.
Load takes a byte slice and deserializes the contents into Config object.
LoadFromFile load config from file.
NewClientConfigFromBytes takes your iamconfig and gives you back a ClientConfig.
NewClientConfigFromConfig takes your Config and gives you back a ClientConfig.
NewConfig is a convenience function that returns a new Config object with non-nil maps.
NewEmptyConfigError returns an error wrapping the given message which IsEmptyConfig() will recognize as an empty config error.
ParseTimeout returns a parsed duration from a string A duration string value must be a positive integer, optionally followed by a corresponding time unit (s|m|h).
RESTConfigFromIAMConfig is a convenience method to give back a restconfig from your iamconfig bytes.
# Constants
Defines some useful for const variables.
Defines some useful for const variables.
Defines some useful for const variables.
Defines some useful for const variables.
Defines some useful for const variables.
# Variables
ErrEmptyConfig defines no configuration has been provided error.
ErrEmptyServer defines a no server defined error.
ErrNoContext defines no context chosen error.
Defines some useful variables.
Defines some useful variables.
Defines some useful variables.
# Structs
AuthInfo contains information that describes identity information.
Config defines a config struct used by marmotedu-sdk-go.
DirectClientConfig wrap for Config.
Server contains information about how to communicate with a iam api server.
# Interfaces
ClientConfig is used to make it easy to get an api server client.