Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultHTTPClientTimeout = 60 * time.Second DefaultPortGRPC = 9111 DefaultPortHTTP = 9191 StoneWorkServiceName = "stonework" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API defines client API. It is supposed to be used by various client applications, such as swctl or other user applications interacting with StoneWork.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements API interface.
func NewClient ¶
NewClient creates a new client that implements API. The client can be customized by options.
func (*Client) DockerClient ¶
func (*Client) GetComponents ¶
func (*Client) HTTPClient ¶
HTTPClient returns configured HTTP client.
type Component ¶
type Component interface { GetName() string GetMode() ComponentMode GetInfo() *cnfreg.Info GetMetadata() map[string]string ConfigStatus() (*ConfigCounts, error) }
Component is a component of StoneWork. It can be StoneWork instance itself, a CNF connected to it or other Ligato service in connected to StoneWork.
type ComponentMode ¶
type ComponentMode int32
const ( ComponentUnknown ComponentMode = iota // Auxiliary means the component is not a CNF and is not managed by StoneWork ComponentAuxiliary // Standalone means the component is a standalone CNF ComponentStandalone // ComponentStonework means the component is a StoneWork module managed by StoneWork ComponentStoneworkModule // Stonework means the component is a StoneWork instance ComponentStonework )
func (ComponentMode) String ¶
func (c ComponentMode) String() string
type ConfigCounts ¶
func (ConfigCounts) String ¶
func (cc ConfigCounts) String() string
Click to show internal directories.
Click to hide internal directories.