telnet

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*Config) Descriptor

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

func (*Config) GetPassword

func (m *Config) GetPassword() string

func (*Config) GetPort

func (m *Config) GetPort() int32

func (*Config) GetReadDeadLine

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

func (*Config) GetRegexPrompt

func (m *Config) GetRegexPrompt() string

func (*Config) GetScreenLength

func (m *Config) GetScreenLength() string

func (*Config) GetScreenLengthCommand

func (m *Config) GetScreenLengthCommand() string

func (*Config) GetSshKeyPath

func (m *Config) GetSshKeyPath() string

func (*Config) GetTimeout

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

func (*Config) GetTtl

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

func (*Config) GetType

func (m *Config) GetType() string

func (*Config) GetUser

func (m *Config) GetUser() string

func (*Config) GetWriteDeadLine

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

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Payload) Descriptor

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

func (*Payload) GetCommand

func (m *Payload) GetCommand() string

func (*Payload) GetConfigure

func (m *Payload) GetConfigure() string

func (*Payload) GetLookfor

func (m *Payload) GetLookfor() string

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) Reset

func (m *Payload) Reset()

func (*Payload) String

func (m *Payload) String() string

func (*Payload) XXX_DiscardUnknown

func (m *Payload) XXX_DiscardUnknown()

func (*Payload) XXX_Marshal

func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Payload) XXX_Merge

func (m *Payload) XXX_Merge(src proto.Message)

func (*Payload) XXX_Size

func (m *Payload) XXX_Size() int

func (*Payload) XXX_Unmarshal

func (m *Payload) XXX_Unmarshal(b []byte) error

type Task

type Task struct {
	Type    Type       `protobuf:"varint,1,opt,name=type,proto3,enum=dnc.telnet.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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Task) Descriptor

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

func (*Task) GetConfig

func (m *Task) GetConfig() *Config

func (*Task) GetHost

func (m *Task) GetHost() string

func (*Task) GetPayload

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

func (*Task) GetType

func (m *Task) GetType() Type

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) Reset

func (m *Task) Reset()

func (*Task) String

func (m *Task) String() string

func (*Task) XXX_DiscardUnknown

func (m *Task) XXX_DiscardUnknown()

func (*Task) XXX_Marshal

func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Task) XXX_Merge

func (m *Task) XXX_Merge(src proto.Message)

func (*Task) XXX_Size

func (m *Task) XXX_Size() int

func (*Task) XXX_Unmarshal

func (m *Task) XXX_Unmarshal(b []byte) error

type Type

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

func (Type) EnumDescriptor

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

func (Type) String

func (x Type) String() string

Jump to

Keyboard shortcuts

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