Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetInfo(*query.Parameters) (*types.Info, error) RegisterPlatform(*types.Platform) (*types.Platform, error) RegisterBroker(*types.Broker) (*types.Broker, error) RegisterVisibility(*types.Visibility) (*types.Visibility, error) ListBrokers(*query.Parameters) (*types.Brokers, error) ListPlatforms(*query.Parameters) (*types.Platforms, error) ListOfferings(*query.Parameters) (*types.ServiceOfferings, error) ListVisibilities(*query.Parameters) (*types.Visibilities, error) DeleteBroker(string) error DeleteBrokersByFieldQuery(string) error DeletePlatform(string) error DeleteVisibility(string) error DeletePlatformsByFieldQuery(string) error UpdateBroker(string, *types.Broker) (*types.Broker, error) UpdatePlatform(string, *types.Platform) (*types.Platform, error) UpdateVisibility(string, *types.Visibility) (*types.Visibility, error) Label(string, string, *types.LabelChanges) error // Call makes HTTP request to the Service Manager server with authentication. // It should be used only in case there is no already implemented method for such an operation Call(method string, smpath string, body io.Reader) (*http.Response, error) }
Client should be implemented by SM clients
func NewClient ¶
NewClient returns new SM client which will use the http client provided to make calls
func NewClientWithAuth ¶ added in v1.5.0
func NewClientWithAuth(httpClient auth.Client, config *ClientConfig) (Client, error)
NewClientWithAuth returns new SM Client configured with the provided configuration
Click to show internal directories.
Click to hide internal directories.