ansible

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

View Source
const (
	APReferenceMethodOffline = "offline"
	APReferenceMethodOnline  = "online"

	APReferenceStatusReady = "ready"
)
View Source
const (
	AnsiblePlaybookStatusInit      = "init"
	AnsiblePlaybookStatusRunning   = "running"
	AnsiblePlaybookStatusSucceeded = "succeeded"
	AnsiblePlaybookStatusFailed    = "failed"
	AnsiblePlaybookStatusCanceled  = "canceled"
	AnsiblePlaybookStatusUnknown   = "unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnsibleHost

type AnsibleHost struct {
	User     string `json:"user"`
	IP       string `json:"ip"`
	Port     int    `json:"port"`
	Name     string `json:"name"`
	Password string `json:"password"`
	OsType   string `json:"os_type"`
}

type AnsiblePlaybookCreateInput

type AnsiblePlaybookCreateInput struct {
	apis.Meta

	Name     string
	Playbook ansible.Playbook
}

type AnsiblePlaybookInstanceListInput

type AnsiblePlaybookInstanceListInput struct {
	apis.StatusStandaloneResourceListInput
	AnsiblePlayboookReferenceId string
}

type AnsiblePlaybookReferenceCreateInput

type AnsiblePlaybookReferenceCreateInput struct {
	apis.SharableVirtualResourceCreateInput

	SAnsiblePlaybookReference
	PlaybookParams map[string]interface{} `json:"playbook_params"`
}

type AnsiblePlaybookReferenceRunInput

type AnsiblePlaybookReferenceRunInput struct {
	Host AnsibleHost
	Args jsonutils.JSONObject
}

type AnsiblePlaybookReferenceRunOutput

type AnsiblePlaybookReferenceRunOutput struct {
	AnsiblePlaybookInstanceId string
}

type AnsiblePlaybookReferenceStopInput

type AnsiblePlaybookReferenceStopInput struct {
	AnsiblePlaybookInstanceId string
}

type AnsiblePlaybookReferenceUpdateInput

type AnsiblePlaybookReferenceUpdateInput struct {
}

type AnsiblePlaybookUpdateInput

type AnsiblePlaybookUpdateInput AnsiblePlaybookCreateInput

type SAnsiblePlaybook

type SAnsiblePlaybook struct {
	apis.SVirtualResourceBase
	Playbook  *ansible.Playbook `json:"playbook"`
	Output    string            `json:"output"`
	StartTime time.Time         `json:"start_time"`
	EndTime   time.Time         `json:"end_time"`
}

SAnsiblePlaybook is an autogenerated struct via yunion.io/x/onecloud/pkg/ansibleserver/models.SAnsiblePlaybook.

type SAnsiblePlaybookInstance

type SAnsiblePlaybookInstance struct {
	apis.SStatusStandaloneResourceBase
	ReferenceId     string    `json:"reference_id"`
	ProxyEndpoingId string    `json:"proxy_endpoing_id"`
	LocalForwardId  string    `json:"local_forward_id"`
	Proxy           string    `json:"proxy"`
	Output          string    `json:"output"`
	StartTime       time.Time `json:"start_time"`
	EndTime         time.Time `json:"end_time"`
}

SAnsiblePlaybookInstance is an autogenerated struct via yunion.io/x/onecloud/pkg/ansibleserver/models.SAnsiblePlaybookInstance.

type SAnsiblePlaybookReference

type SAnsiblePlaybookReference struct {
	apis.SVirtualResourceBase
	PlaybookPath string `json:"playbook_path"`
	Method       string `json:"method"`
}

SAnsiblePlaybookReference is an autogenerated struct via yunion.io/x/onecloud/pkg/ansibleserver/models.SAnsiblePlaybookReference.

type SAnsiblePlaybookV2

type SAnsiblePlaybookV2 struct {
	apis.SVirtualResourceBase
	Playbook     string    `json:"playbook"`
	Inventory    string    `json:"inventory"`
	Requirements string    `json:"requirements"`
	Files        string    `json:"files"`
	Output       string    `json:"output"`
	StartTime    time.Time `json:"start_time"`
	EndTime      time.Time `json:"end_time"`
	CreatorMark  string    `json:"creator_mark"`
}

SAnsiblePlaybookV2 is an autogenerated struct via yunion.io/x/onecloud/pkg/ansibleserver/models.SAnsiblePlaybookV2.

Jump to

Keyboard shortcuts

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