cmd

package
v0.15.15 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APPNAME = "TOOLS"
View Source
var EC2Options = vendors.AWSOptions{
	Accounts:    envGet("AWS_ACCOUNTS", "").(string),
	Role:        envGet("AWS_ROLE", "").(string),
	RoleTimeout: envGet("AWS_ROLE_TIMEOUT", "300").(string),
	AWSKeys: vendors.AWSKeys{
		AccessKey: envGet("AWS_ACCESSKEY", "").(string),
		SecretKey: envGet("AWS_SECRETKEY", "").(string),
	},
}
View Source
var EC2Output = common.OutputOptions{
	Output: envGet("AWS_EC2_OUTPUT", "").(string),
	Query:  envGet("AWS_EC2_OUTPUT_QUERY", "").(string),
}
View Source
var JiraIssueOptions = vendors.JiraIssueOptions{
	ProjectKey:   envGet("JIRA_ISSUE_PROJECT_KEY", "").(string),
	Type:         envGet("JIRA_ISSUE_TYPE", "").(string),
	Priority:     envGet("JIRA_ISSUE_PRIORITY", "").(string),
	Assignee:     envGet("JIRA_ISSUE_ASSIGNEE", "").(string),
	Reporter:     envGet("JIRA_ISSUE_REPORTER", "").(string),
	IdOrKey:      envGet("JIRA_ISSUE_ID_OR_KEY", "").(string),
	Summary:      envGet("JIRA_ISSUE_SUMMARY", "").(string),
	Description:  envGet("JIRA_ISSUE_DESCRIPTION", "").(string),
	CustomFields: envGet("JIRA_ISSUE_CUSTOM_FIELDS", "").(string),
	Labels:       strings.Split(envGet("JIRA_ISSUE_LABELS", "").(string), ","),
	TransitionID: envGet("JIRA_ISSUE_STATUS", "").(string),
}

Functions

func EC2New added in v0.13.2

func EC2New(stdout *common.Stdout) *vendors.AWSEC2

func Execute

func Execute()

func NewAWSCommand added in v0.13.2

func NewAWSCommand() *cobra.Command

func NewDateCommand added in v0.7.0

func NewDateCommand() *cobra.Command

func NewEC2Subcommand added in v0.13.2

func NewEC2Subcommand() *cobra.Command

func NewGitlabCommand added in v0.3.0

func NewGitlabCommand() *cobra.Command

func NewGoogleCommand added in v0.3.0

func NewGoogleCommand() *cobra.Command

func NewGrafanaCommand added in v0.2.0

func NewGrafanaCommand() *cobra.Command

func NewGraylogCommand added in v0.0.4

func NewGraylogCommand() *cobra.Command

func NewJSONCommand added in v0.2.7

func NewJSONCommand() *cobra.Command

func NewJiraCommand added in v0.1.0

func NewJiraCommand() *cobra.Command

func NewObserviumCommand added in v0.9.15

func NewObserviumCommand() *cobra.Command

func NewPagerDutyCommand added in v0.12.0

func NewPagerDutyCommand() *cobra.Command

func NewPrometheusCommand added in v0.6.0

func NewPrometheusCommand() *cobra.Command

func NewSite24x7Command added in v0.15.0

func NewSite24x7Command() *cobra.Command

func NewSlackCommand added in v0.0.4

func NewSlackCommand() *cobra.Command

func NewTelegramCommand added in v0.0.4

func NewTelegramCommand() *cobra.Command

func NewTemplateCommand added in v0.4.2

func NewTemplateCommand() *cobra.Command

func NewVCenterCommand added in v0.10.1

func NewVCenterCommand() *cobra.Command

func NewZabbixCommand added in v0.10.0

func NewZabbixCommand() *cobra.Command

Types

type DateOptions added in v0.7.0

type DateOptions struct {
	Value  string
	Offset string
	Format string
}

type GoogleCalendarInsertEventOptions added in v0.13.2

type GoogleCalendarInsertEventOptions struct {
	SupportsAttachments bool
	SourceTitle         string
	SourceURL           string
}

Jump to

Keyboard shortcuts

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