client

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckName

func CheckName(serviceName string, services []swarm.Service) error

CheckName checks if the docker swarm service name is already in use

func CheckPort

func CheckPort(servicePort int, services []swarm.Service) error

CheckPort checks if the port is already in use

func CreateDockerSwarmService

func CreateDockerSwarmService(serviceSpec swarm.ServiceSpec) (*types.ServiceCreateResponse, error)

CreateDockerSwarmService creates docker swarm service

func GetAdminJSON

func GetAdminJSON(file string) (*model.AdminConfig, error)

GetAdminJSON returns a json config for admins

func GetDockerSwarmServices

func GetDockerSwarmServices() ([]swarm.Service, error)

GetDockerSwarmServices gets docker swarm services

func GetUserJSON

func GetUserJSON(file string) (*model.UserConfig, error)

GetUserJSON returns a json config for users

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL