packing

package
v0.0.0-...-d611a6b Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_remote_meta_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Command

type Command struct {
	Name      string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`            // 执行的命令
	Args      []string `protobuf:"bytes,2,rep,name=Args,proto3" json:"Args,omitempty"`            // 命令的参数
	TimeoutMS int32    `protobuf:"varint,3,opt,name=TimeoutMS,proto3" json:"TimeoutMS,omitempty"` // 超时时间,毫秒
	Stdin     []byte   `protobuf:"bytes,4,opt,name=Stdin,proto3" json:"Stdin,omitempty"`          // 标准输入
	// contains filtered or unexported fields
}

func (*Command) Descriptor deprecated

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

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetArgs

func (x *Command) GetArgs() []string

func (*Command) GetName

func (x *Command) GetName() string

func (*Command) GetStdin

func (x *Command) GetStdin() []byte

func (*Command) GetTimeoutMS

func (x *Command) GetTimeoutMS() int32

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

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

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type CommandResult

type CommandResult struct {
	Stdout   []byte `protobuf:"bytes,1,opt,name=Stdout,proto3" json:"Stdout,omitempty"`
	Stderr   []byte `protobuf:"bytes,2,opt,name=Stderr,proto3" json:"Stderr,omitempty"`
	Finished bool   `protobuf:"varint,3,opt,name=Finished,proto3" json:"Finished,omitempty"`
	ExitCode int32  `protobuf:"varint,4,opt,name=ExitCode,proto3" json:"ExitCode,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandResult) Descriptor deprecated

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

Deprecated: Use CommandResult.ProtoReflect.Descriptor instead.

func (*CommandResult) GetExitCode

func (x *CommandResult) GetExitCode() int32

func (*CommandResult) GetFinished

func (x *CommandResult) GetFinished() bool

func (*CommandResult) GetStderr

func (x *CommandResult) GetStderr() []byte

func (*CommandResult) GetStdout

func (x *CommandResult) GetStdout() []byte

func (*CommandResult) ProtoMessage

func (*CommandResult) ProtoMessage()

func (*CommandResult) ProtoReflect

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

func (*CommandResult) Reset

func (x *CommandResult) Reset()

func (*CommandResult) String

func (x *CommandResult) String() string

type User

type User struct {
	Name     string
	PswMd5   string
	Psw      string
	Disabled bool
}

func (*User) Check

func (u *User) Check(ar *fsrpc.AuthData) error

func (*User) ToAuthData

func (u *User) ToAuthData() *fsrpc.AuthData

type Users

type Users []*User

func (Users) Find

func (us Users) Find(name string) *User

Jump to

Keyboard shortcuts

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