Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetInfo() (*types.Info, error) RegisterPlatform(*types.Platform) (*types.Platform, error) RegisterBroker(*types.Broker) (*types.Broker, error) ListBrokers() (*types.Brokers, error) ListPlatforms() (*types.Platforms, error) DeleteBroker(string) error DeletePlatform(string) error UpdateBroker(string, *types.Broker) (*types.Broker, error) UpdatePlatform(string, *types.Platform) (*types.Platform, error) }
Client should be implemented by SM clients
type ClientConfig ¶
type ClientConfig struct { auth.Token ClientID string ClientSecret string AuthorizationEndpoint string TokenEndpoint string IssuerURL string URL string User string SSLDisabled bool }
ClientConfig contains the configuration of the CLI.
func (ClientConfig) GetToken ¶
func (clientCfg ClientConfig) GetToken() auth.Token
GetToken returns the oauth token from the client configuration
func (ClientConfig) Validate ¶
func (clientCfg ClientConfig) Validate() error
Validate validates client config
Click to show internal directories.
Click to hide internal directories.