Documentation ¶
Index ¶
- Constants
- type KobeClient
- func (c *KobeClient) CancelTask(taskId string) error
- func (c *KobeClient) CreateProject(name string, source string) (*api.Project, error)
- func (c *KobeClient) CreateProjectWithAuth(name string, source string, username string, password string) (*api.Project, error)
- func (c KobeClient) DeleteProject(name string) error
- func (c *KobeClient) GetInvertory(id string) (*api.Inventory, error)
- func (c *KobeClient) GetResult(taskId string) (*api.Result, error)
- func (c KobeClient) ListProject() ([]*api.Project, error)
- func (c *KobeClient) ListResult() ([]*api.Result, error)
- func (c KobeClient) RunAdhoc(pattern, module, param string, inventory *api.Inventory) (*api.Result, error)
- func (c KobeClient) RunPlaybook(project, playbook, tag string, inventory *api.Inventory) (*api.Result, error)
- func (c *KobeClient) WatchRun(taskId string, writer io.Writer) error
- func (c *KobeClient) WatchRunWithFlush(taskId string, writer io.Writer) error
- type Msg
Constants ¶
View Source
const ( MSG_TYPE_TEXT = 1 MSG_TYPE_JSON = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KobeClient ¶
type KobeClient struct {
// contains filtered or unexported fields
}
func NewKobeClient ¶
func NewKobeClient(host string, port int) *KobeClient
func (*KobeClient) CancelTask ¶
func (c *KobeClient) CancelTask(taskId string) error
func (*KobeClient) CreateProject ¶
func (*KobeClient) CreateProjectWithAuth ¶
func (KobeClient) DeleteProject ¶
func (c KobeClient) DeleteProject(name string) error
func (*KobeClient) GetInvertory ¶
func (c *KobeClient) GetInvertory(id string) (*api.Inventory, error)
func (KobeClient) ListProject ¶
func (c KobeClient) ListProject() ([]*api.Project, error)
func (*KobeClient) ListResult ¶
func (c *KobeClient) ListResult() ([]*api.Result, error)
func (KobeClient) RunPlaybook ¶
func (*KobeClient) WatchRunWithFlush ¶ added in v1.0.1
func (c *KobeClient) WatchRunWithFlush(taskId string, writer io.Writer) error
Click to show internal directories.
Click to hide internal directories.