supportids

package
v0.0.0-...-966d904 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = models.Command{
	Name:      "support-ids",
	ShortHelp: "Print out various IDs related to an environment to be used when contacting Datica support",
	LongHelp: "<code>support-ids</code> is helpful when contacting Datica support by submitting a ticket at https://datica.com/support. " +
		"If you are having an issue with a CLI command or anything with your environment, it is helpful to run this command and copy the output into the initial correspondence with a Datica engineer. " +
		"This will help Datica identify the environment faster and help come to resolution faster. Here is a sample command\n\n" +
		"<pre>\ndatica -E \"<your_env_name>\" support-ids\n</pre>",
	CmdFunc: func(settings *models.Settings) func(cmd *cli.Cmd) {
		return func(cmd *cli.Cmd) {
			cmd.Action = func() {
				err := CmdSupportIDs(New(settings))
				if err != nil {
					logrus.Fatal(err.Error())
				}
			}
		}
	},
}

Cmd is the contract between the user and the CLI. This specifies the command name, arguments, and required/optional arguments and flags for the command.

Functions

func CmdSupportIDs

func CmdSupportIDs(is ISupportIDs) error

Types

type ISupportIDs

type ISupportIDs interface {
	SupportIDs() (string, string, string, string, error)
}

ISupportIDs

func New

func New(settings *models.Settings) ISupportIDs

New returns an instance of ISupportIDs

type SSupportIDs

type SSupportIDs struct {
	Settings *models.Settings
}

SSupportIDs is a concrete implementation of ISupportIDs

func (*SSupportIDs) SupportIDs

func (s *SSupportIDs) SupportIDs() (string, string, string, string, error)

SupportIDs prints out various IDs related to the associated environment to be used when contacting Datica support.

Jump to

Keyboard shortcuts

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