ops

package
v0.0.0-...-21311fb Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(publicIP string, privateIP string, sshUser string, sshKeyPath string) infra.Node

Types

type Config

type Config struct {
	// URL to the ops center to use for deployment
	URL string `json:"url" yaml:"url" validate:"required"`
	// OpsKey is the key to connect to the ops center
	OpsKey string `json:"ops_key" yaml:"ops_key" validate:"required"`
	// App is the ops center application to deploy
	App string `json:"app" yaml:"app" validate:"required"`
	// EC2AccessKey http://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html
	EC2AccessKey string `json:"access_key" yaml:"access_key" validate:"required"`
	// EC2SecretKey http://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html
	EC2SecretKey string `json:"secret_key" yaml:"secret_key" validate:"required"`
	// EC2Region specifies the EC2 region to install into
	EC2Region string `json:"region" yaml:"region" validate:"required"`
	// SSHKeyPath specifies the location of the SSH key to use for remote access.
	// Mandatory only with terraform provisioner
	SSHKeyPath string `json:"key_path" yaml:"key_path"`
	// SSHUser defines SSH user used to connect to the provisioned machines
	SSHUser string `json:"ssh_user" yaml:"ssh_user" validate:"required"`
}

Config specified Ops Center specific parameters

Jump to

Keyboard shortcuts

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