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 ¶
- func Create() integrations.StringIntegrator
- type SSHKeyInt
- func (n *SSHKeyInt) GenerateIntegrationString(credz []pb.OcyCredder) (string, error)
- func (n *SSHKeyInt) GetEnv() []string
- func (n *SSHKeyInt) IsRelevant(wc *pb.BuildConfig) bool
- func (n *SSHKeyInt) MakeBashable(str string) []string
- func (n *SSHKeyInt) String() string
- func (n *SSHKeyInt) SubType() pb.SubCredType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create() integrations.StringIntegrator
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) IsRelevant ¶
func (n *SSHKeyInt) IsRelevant(wc *pb.BuildConfig) bool
func (*SSHKeyInt) MakeBashable ¶
func (*SSHKeyInt) SubType ¶
func (n *SSHKeyInt) SubType() pb.SubCredType
Click to show internal directories.
Click to hide internal directories.