ssh

package
v0.0.0-...-c02b23a Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "GET",
		1: "SET",
	}
	Type_value = map[string]int32{
		"GET": 0,
		"SET": 1,
	}
)

Enum value maps for Type.

View Source
var File_git_liero_se_opentelco_go_dnc_proto_ssh_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

type Config struct {
	User                string             `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Password            string             `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Port                int32              `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	ScreenLength        string             `protobuf:"bytes,4,opt,name=screen_length,json=screenLength,proto3" json:"screen_length,omitempty"`
	RegexPrompt         string             `protobuf:"bytes,5,opt,name=regex_prompt,json=regexPrompt,proto3" json:"regex_prompt,omitempty"`
	ScreenLengthCommand string             `protobuf:"bytes,6,opt,name=screen_length_command,json=screenLengthCommand,proto3" json:"screen_length_command,omitempty"`
	Ttl                 *duration.Duration `protobuf:"bytes,7,opt,name=ttl,proto3" json:"ttl,omitempty"`
	ReadDeadLine        *duration.Duration `protobuf:"bytes,8,opt,name=read_dead_line,json=readDeadLine,proto3" json:"read_dead_line,omitempty"`
	WriteDeadLine       *duration.Duration `protobuf:"bytes,9,opt,name=write_dead_line,json=writeDeadLine,proto3" json:"write_dead_line,omitempty"`
	Timeout             *duration.Duration `protobuf:"bytes,10,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Type                string             `protobuf:"bytes,11,opt,name=type,proto3" json:"type,omitempty"`
	SshKeyPath          string             `protobuf:"bytes,12,opt,name=ssh_key_path,json=sshKeyPath,proto3" json:"ssh_key_path,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetPassword

func (x *Config) GetPassword() string

func (*Config) GetPort

func (x *Config) GetPort() int32

func (*Config) GetReadDeadLine

func (x *Config) GetReadDeadLine() *duration.Duration

func (*Config) GetRegexPrompt

func (x *Config) GetRegexPrompt() string

func (*Config) GetScreenLength

func (x *Config) GetScreenLength() string

func (*Config) GetScreenLengthCommand

func (x *Config) GetScreenLengthCommand() string

func (*Config) GetSshKeyPath

func (x *Config) GetSshKeyPath() string

func (*Config) GetTimeout

func (x *Config) GetTimeout() *duration.Duration

func (*Config) GetTtl

func (x *Config) GetTtl() *duration.Duration

func (*Config) GetType

func (x *Config) GetType() string

func (*Config) GetUser

func (x *Config) GetUser() string

func (*Config) GetWriteDeadLine

func (x *Config) GetWriteDeadLine() *duration.Duration

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Payload

type Payload struct {
	Command   string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	Configure string `protobuf:"bytes,2,opt,name=configure,proto3" json:"configure,omitempty"`
	Lookfor   string `protobuf:"bytes,3,opt,name=lookfor,proto3" json:"lookfor,omitempty"`
	// contains filtered or unexported fields
}

func (*Payload) Descriptor deprecated

func (*Payload) Descriptor() ([]byte, []int)

Deprecated: Use Payload.ProtoReflect.Descriptor instead.

func (*Payload) GetCommand

func (x *Payload) GetCommand() string

func (*Payload) GetConfigure

func (x *Payload) GetConfigure() string

func (*Payload) GetLookfor

func (x *Payload) GetLookfor() string

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) ProtoReflect

func (x *Payload) ProtoReflect() protoreflect.Message

func (*Payload) Reset

func (x *Payload) Reset()

func (*Payload) String

func (x *Payload) String() string

type Task

type Task struct {
	Type    Type       `protobuf:"varint,1,opt,name=type,proto3,enum=dnc.ssh.Type" json:"type,omitempty"`
	Payload []*Payload `protobuf:"bytes,2,rep,name=payload,proto3" json:"payload,omitempty"`
	//   speicfic config for command
	Config *Config `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	Host   string  `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

func (*Task) Descriptor() ([]byte, []int)

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetConfig

func (x *Task) GetConfig() *Config

func (*Task) GetHost

func (x *Task) GetHost() string

func (*Task) GetPayload

func (x *Task) GetPayload() []*Payload

func (*Task) GetType

func (x *Task) GetType() Type

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

func (x *Task) ProtoReflect() protoreflect.Message

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

type Type

type Type int32
const (
	Type_GET Type = 0
	Type_SET Type = 1
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

func (Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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