action_scp

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action_ScpDownload

func Action_ScpDownload(w *workflow.Workflow, m *workflow.TemplateData) error

func Action_ScpUpload

func Action_ScpUpload(w *workflow.Workflow, m *workflow.TemplateData) error

func GetSchema

func GetSchema() workflow.SchemaEndpoint

GetAction returns the action for the target

Types

type SCP

type SCP struct {
	Host     string `json:"host" yaml:"host" flag:"host h" desc:"SCP host"`
	User     string `json:"user" yaml:"user" flag:"user u" desc:"User for SCP"`
	Password string `json:"password" yaml:"password" flag:"password p" desc:"Password for SCP"`
}

func CreateSCP

func CreateSCP(env string, host string, user string, password string) *SCP

Create a instance of the docker registry

func CreateSCPOptions

func CreateSCPOptions(env string, opts ...SCPOptions) *SCP

func (*SCP) SCPFileDownload

func (m *SCP) SCPFileDownload(source string, target string) error

func (*SCP) SCPFileUpload

func (m *SCP) SCPFileUpload(source string, target string) error

func (*SCP) String

func (m *SCP) String() string

func (*SCP) Test

func (m *SCP) Test() (bool, string, error)

func (*SCP) Update

func (m *SCP) Update(opts ...SCPOptions)

type SCPOptions

type SCPOptions func(*SCP)

func OptionSCPHost

func OptionSCPHost(host string) SCPOptions

func OptionSCPPassword

func OptionSCPPassword(password string) SCPOptions

func OptionSCPUser

func OptionSCPUser(user string) SCPOptions

type ScpSchema

type ScpSchema struct {
}

func (ScpSchema) GetActionSchema

func (s ScpSchema) GetActionSchema() map[string]workflow.ActionSchema

GetActions returns the actions for this schema

func (ScpSchema) GetFunctionMap

func (s ScpSchema) GetFunctionMap() map[string]workflow.FunctionSchema

GetFunctionMap returns the function map for this schema

func (ScpSchema) GetTargetSchema

func (s ScpSchema) GetTargetSchema() map[string]workflow.TargetSchema

GetTargetSchema returns the target schema for this action

Jump to

Keyboard shortcuts

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