sshkey

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

  sshkey is an implementation of the StringIntegrator interface

	sshkey's methods will create keyfiles in the ~/.ssh directory for ssh type credential it is passed. the files will be
	named the value of the Identifier field. builds can reference these to scp or ssh to remote servers
	For example:
		$ ocelot creds ssh add --identifier JESSI_SSH_KEY --acctname level11consulting --sshfile-loc /Users/jesseshank/.ssh/id_rsa
	In the build, this ssh key can be utilized at `~/.ssh/JESSI_SSH_KEY`, in ocelot.yml:
		script:
		- ssh -i ~/.ssh/JESSI_SSH_KEY ubuntu@cloud-host.amazonaws.com docker restart buildcontainer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

Types

type SSHKeyInt

type SSHKeyInt struct {
	// contains filtered or unexported fields
}

func (*SSHKeyInt) GenerateIntegrationString

func (n *SSHKeyInt) GenerateIntegrationString(credz []pb.OcyCredder) (string, error)

func (*SSHKeyInt) GetEnv

func (n *SSHKeyInt) GetEnv() []string

func (*SSHKeyInt) IsRelevant

func (n *SSHKeyInt) IsRelevant(wc *pb.BuildConfig) bool

func (*SSHKeyInt) MakeBashable

func (n *SSHKeyInt) MakeBashable(str string) []string

func (*SSHKeyInt) String

func (n *SSHKeyInt) String() string

func (*SSHKeyInt) SubType

func (n *SSHKeyInt) SubType() pb.SubCredType

Jump to

Keyboard shortcuts

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