Lines Matching defs:client
33 type client struct { struct
34 url string
35 ip string
36 client *http.Client member
69 func (m *client) SendRequest(path string) ([]byte, error) {
97 func (m *client) SendRequestCtx(ctx context.Context, path string) ([]byte, error) {
125 func (m *client) GetVersion() (string, error) {
133 func (m *client) GetSelfHost() (Host, error) {
147 func (m *client) GetSelfContainer() (Container, error) {
161 func (m *client) GetSelfServiceByName(name string) (Service, error) {
175 func (m *client) GetSelfService() (Service, error) {
189 func (m *client) GetSelfStack() (Stack, error) {
203 func (m *client) GetServices() ([]Service, error) {
216 func (m *client) GetStacks() ([]Stack, error) {
229 func (m *client) GetStackByName(name string) (Stack, error) {
243 func (m *client) GetContainers() ([]Container, error) {
256 func (m *client) GetServiceContainers(serviceName string, stackName string) ([]Container, error) {
272 func (m *client) GetHosts() ([]Host, error) {
285 func (m *client) GetHost(UUID string) (Host, error) {
300 func (m *client) GetNetworks() ([]Network, error) {