devtool

package
v0.3.10-0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	SCRIPT_APPLY_STATUS_APPLYING     = "applying"
	SCRIPT_APPLY_STATUS_APPLY_FAILED = "apply_failed"
	SCRIPT_APPLY_STATUS_READY        = "ready"

	SCRIPT_APPLY_RECORD_APPLYING = "applying"
	SCRIPT_APPLY_RECORD_SUCCEED  = "succeed"
	SCRIPT_APPLY_RECORD_FAILED   = "failed"

	SCRIPT_APPLY_RECORD_FAILCODE_SSHABLE  = "ServerNotSshable"
	SCRIPT_APPLY_RECORD_FAILCODE_INFLUXDB = "NoReachInfluxdb"
	SCRIPT_APPLY_RECORD_FAILCODE_OTHERS   = "Others"

	SCRIPT_NAME  = "monitor agent"
	SERVICE_TYPE = "devtool"

	SCRIPT_STATUS_READY = "ready"
)
View Source
const (
	SERVICEURL_STATUS_CREATING      = "creating"
	SERVICEURL_STATUS_READY         = "ready"
	SERVICEURL_STATUS_DELETING      = "deleting"
	SERVICEURL_STATUS_CREATE_FAILED = "create_failed"
	SERVICEURL_STATUS_DELETE_FAILED = "delete_failed"
)
View Source
const (
	SSHINFO_STATUS_CREATING      = "creating"
	SSHINFO_STATUS_READY         = "ready"
	SSHINFO_STATUS_DELETING      = "deleting"
	SSHINFO_STATUS_CREATE_FAILED = "create_failed"
	SSHINFO_STATUS_DELETE_FAILED = "delete_failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DevtoolManagerServiceUrlInput

type DevtoolManagerServiceUrlInput struct {
	ServiceName string
	ServerId    string
}

type DevtoolManagerServiceUrlOutput

type DevtoolManagerServiceUrlOutput struct {
	ServiceUrl string
}

type SApplyInfo

type SApplyInfo struct {
	ServerId string
	TryTimes int
}

type SCronjob

type SCronjob struct {
	SVSCronjob
	AnsiblePlaybookID string `json:"ansible_playbook_id"`
	TemplateID        string `json:"template_id"`
	ServerID          string `json:"server_id"`
	apis.SVirtualResourceBase
}

SCronjob is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SCronjob.

type SDevtoolTemplate

type SDevtoolTemplate struct {
	SVSCronjob
	Playbook *ansible.Playbook `json:"playbook"`
	apis.SVirtualResourceBase
}

SDevtoolTemplate is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SDevtoolTemplate.

type SScript

type SScript struct {
	apis.SVirtualResourceBase
	// remote
	Type              string `json:"type"`
	PlaybookReference string `json:"playbook_reference"`
	MaxTryTimes       int    `json:"max_try_times"`
}

SScript is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SScript.

type SScriptApply

type SScriptApply struct {
	apis.SStatusStandaloneResourceBase
	ScriptId        string `json:"script_id"`
	GuestId         string `json:"guest_id"`
	EipFirst        *bool  `json:"eip_first,omitempty"`
	ProxyEndpointId string `json:"proxy_endpoint_id"`
	TryTimes        int    `json:"try_times"`
}

SScriptApply is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SScriptApply.

type SScriptApplyRecord

type SScriptApplyRecord struct {
	apis.SStatusStandaloneResourceBase
	ScriptApplyId string    `json:"script_apply_id"`
	StartTime     time.Time `json:"start_time"`
	EndTime       time.Time `json:"end_time"`
	Reason        string    `json:"reason"`
}

SScriptApplyRecord is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SScriptApplyRecord.

type SVSCronjob

type SVSCronjob struct {
	Day      int   `json:"day"`
	Hour     int   `json:"hour"`
	Min      int   `json:"min"`
	Sec      int   `json:"sec"`
	Interval int64 `json:"interval"`
	Start    bool  `json:"start"`
	Enabled  bool  `json:"enabled"`
}

SVSCronjob is an autogenerated struct via yunion.io/x/onecloud/pkg/devtool/models.SVSCronjob.

type ScriptApplyInput

type ScriptApplyInput struct {
	// description: server id
	// required: true
	// example: b48c5c84-9952-4394-8ca9-c3b84e946a03
	ServerID string
}

type ScriptApplyOutput

type ScriptApplyOutput struct {
	// description: Instantiation of script apply
	// example: cf1d1a0f-9b9d-4629-8036-af3ed87c0821
	ScriptApplyId string
}

type ScriptApplyRecordDetails

type ScriptApplyRecordDetails struct {
	apis.StandaloneResourceDetails
	SScriptApplyRecord
	// description: Id of Script
	// example: cc2e2ba6-e33d-4be3-8e2d-4d2aa843dd03
	ScriptId string
	// description: Id of Server
	// example: a4b3n2c9-dbb7-4c51-8e1a-d2d4b331ccec
	ServerId string
}

type ScriptApplyRecoredListInput

type ScriptApplyRecoredListInput struct {
	apis.StatusStandaloneResourceListInput
	// description: Id of Script
	// example: cc2e2ba6-e33d-4be3-8e2d-4d2aa843dd03
	ScriptId string
	// description: Id of Server
	// example:  a4b3n2c9-dbb7-4c51-8e1a-d2d4b331ccec
	ServerId string
	// description: Id of script apply
	// example: a70eb6e6-dbb7-4c51-8e1a-d2d4b331ccec
	ScriptApplyId string
}

type ScriptBatchApplyInput

type ScriptBatchApplyInput struct {
	ServerIds []string
}

type ScriptBatchApplyOutput

type ScriptBatchApplyOutput struct {
	Results []ScriptBatchApplyResult
}

type ScriptBatchApplyResult

type ScriptBatchApplyResult struct {
	ServerId      string
	Succeed       bool
	Reason        string
	ScriptApplyId string
}

type ScriptCreateInput

type ScriptCreateInput struct {
	apis.SharableVirtualResourceCreateInput
	// description: Id or Name of ansible playbook reference
	// example: cf1d1a0f-9b9d-4629-8036-af3ed87c0821
	PlaybookReference string
	// description: The script may fail to execute, MaxTryTime represents the maximum number of attempts to execute
	MaxTryTimes int
}

type ScriptDetails

type ScriptDetails struct {
	apis.SharableVirtualResourceDetails
	SScript
	ApplyInfos []SApplyInfo
}

Jump to

Keyboard shortcuts

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