client

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 (c *KobeClient) CreateProject(name string, source string) (*api.Project, error)

func (*KobeClient) CreateProjectWithAuth

func (c *KobeClient) CreateProjectWithAuth(name string, source string, username string, password string) (*api.Project, error)

func (KobeClient) DeleteProject

func (c KobeClient) DeleteProject(name string) error

func (*KobeClient) GetInvertory

func (c *KobeClient) GetInvertory(id string) (*api.Inventory, error)

func (*KobeClient) GetResult

func (c *KobeClient) GetResult(taskId string) (*api.Result, error)

func (KobeClient) ListProject

func (c KobeClient) ListProject() ([]*api.Project, error)

func (*KobeClient) ListResult

func (c *KobeClient) ListResult() ([]*api.Result, error)

func (KobeClient) RunAdhoc

func (c KobeClient) RunAdhoc(pattern, module, param string, inventory *api.Inventory) (*api.Result, error)

func (KobeClient) RunPlaybook

func (c KobeClient) RunPlaybook(project, playbook, tag string, inventory *api.Inventory) (*api.Result, error)

func (*KobeClient) WatchRun

func (c *KobeClient) WatchRun(taskId string, writer io.Writer) error

func (*KobeClient) WatchRunWithFlush added in v1.0.1

func (c *KobeClient) WatchRunWithFlush(taskId string, writer io.Writer) error

type Msg added in v1.0.3

type Msg struct {
	Type int
	Data string
}

func NewJsonMsg added in v1.0.3

func NewJsonMsg(data string) *Msg

func NewTextMsg added in v1.0.3

func NewTextMsg(data string) *Msg

Jump to

Keyboard shortcuts

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