agents

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Method_name = map[int32]string{
		0:  "UNKNOWN",
		1:  "CREATE",
		10: "SYNC",
	}
	Method_value = map[string]int32{
		"UNKNOWN": 0,
		"CREATE":  1,
		"SYNC":    10,
	}
)

Enum value maps for Method.

View Source
var (
	Log_Kind_name = map[int32]string{
		0: "UNKNOWN",
		1: "AGENT",
		2: "SERVICE",
	}
	Log_Kind_value = map[string]int32{
		"UNKNOWN": 0,
		"AGENT":   1,
		"SERVICE": 2,
	}
)

Enum value maps for Log_Kind.

View Source
var File_agents_communicate_proto protoreflect.FileDescriptor
View Source
var File_agents_logs_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Answer

type Answer struct {
	Done   bool   `protobuf:"varint,1,opt,name=done,proto3" json:"done,omitempty"`
	Method Method `protobuf:"varint,2,opt,name=method,proto3,enum=v1.agents.communicate.Method" json:"method,omitempty"`
	Round  int32  `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
	Error  string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
	// Types that are assignable to Value:
	//
	//	*Answer_Confirm
	//	*Answer_Input
	//	*Answer_Choice
	//	*Answer_Selection
	Value isAnswer_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Answer) Descriptor deprecated

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

Deprecated: Use Answer.ProtoReflect.Descriptor instead.

func (*Answer) GetChoice

func (x *Answer) GetChoice() *ChoiceAnswer

func (*Answer) GetConfirm

func (x *Answer) GetConfirm() *ConfirmAnswer

func (*Answer) GetDone

func (x *Answer) GetDone() bool

func (*Answer) GetError

func (x *Answer) GetError() string

func (*Answer) GetInput

func (x *Answer) GetInput() *InputAnswer

func (*Answer) GetMethod

func (x *Answer) GetMethod() Method

func (*Answer) GetRound

func (x *Answer) GetRound() int32

func (*Answer) GetSelection

func (x *Answer) GetSelection() *SelectionAnswer

func (*Answer) GetValue

func (m *Answer) GetValue() isAnswer_Value

func (*Answer) ProtoMessage

func (*Answer) ProtoMessage()

func (*Answer) ProtoReflect

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

func (*Answer) Reset

func (x *Answer) Reset()

func (*Answer) String

func (x *Answer) String() string

type Answer_Choice

type Answer_Choice struct {
	Choice *ChoiceAnswer `protobuf:"bytes,7,opt,name=choice,proto3,oneof"`
}

type Answer_Confirm

type Answer_Confirm struct {
	Confirm *ConfirmAnswer `protobuf:"bytes,5,opt,name=confirm,proto3,oneof"`
}

type Answer_Input

type Answer_Input struct {
	Input *InputAnswer `protobuf:"bytes,6,opt,name=input,proto3,oneof"`
}

type Answer_Selection

type Answer_Selection struct {
	Selection *SelectionAnswer `protobuf:"bytes,8,opt,name=selection,proto3,oneof"`
}

type Channel

type Channel struct {
	Method Method `protobuf:"varint,1,opt,name=method,proto3,enum=v1.agents.communicate.Method" json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*Channel) Descriptor deprecated

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

Deprecated: Use Channel.ProtoReflect.Descriptor instead.

func (*Channel) GetMethod

func (x *Channel) GetMethod() Method

func (*Channel) ProtoMessage

func (*Channel) ProtoMessage()

func (*Channel) ProtoReflect

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

func (*Channel) Reset

func (x *Channel) Reset()

func (*Channel) String

func (x *Channel) String() string

type Choice

type Choice struct {
	Options []*Message `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*Choice) Descriptor deprecated

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

Deprecated: Use Choice.ProtoReflect.Descriptor instead.

func (*Choice) GetOptions

func (x *Choice) GetOptions() []*Message

func (*Choice) ProtoMessage

func (*Choice) ProtoMessage()

func (*Choice) ProtoReflect

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

func (*Choice) Reset

func (x *Choice) Reset()

func (*Choice) String

func (x *Choice) String() string

type ChoiceAnswer

type ChoiceAnswer struct {
	Option string `protobuf:"bytes,1,opt,name=option,proto3" json:"option,omitempty"`
	// contains filtered or unexported fields
}

func (*ChoiceAnswer) Descriptor deprecated

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

Deprecated: Use ChoiceAnswer.ProtoReflect.Descriptor instead.

func (*ChoiceAnswer) GetOption

func (x *ChoiceAnswer) GetOption() string

func (*ChoiceAnswer) ProtoMessage

func (*ChoiceAnswer) ProtoMessage()

func (*ChoiceAnswer) ProtoReflect

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

func (*ChoiceAnswer) Reset

func (x *ChoiceAnswer) Reset()

func (*ChoiceAnswer) String

func (x *ChoiceAnswer) String() string

type Confirm

type Confirm struct {
	Default bool `protobuf:"varint,1,opt,name=default,proto3" json:"default,omitempty"`
	// contains filtered or unexported fields
}

func (*Confirm) Descriptor deprecated

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

Deprecated: Use Confirm.ProtoReflect.Descriptor instead.

func (*Confirm) GetDefault

func (x *Confirm) GetDefault() bool

func (*Confirm) ProtoMessage

func (*Confirm) ProtoMessage()

func (*Confirm) ProtoReflect

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

func (*Confirm) Reset

func (x *Confirm) Reset()

func (*Confirm) String

func (x *Confirm) String() string

type ConfirmAnswer

type ConfirmAnswer struct {
	Confirmed bool `protobuf:"varint,1,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfirmAnswer) Descriptor deprecated

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

Deprecated: Use ConfirmAnswer.ProtoReflect.Descriptor instead.

func (*ConfirmAnswer) GetConfirmed

func (x *ConfirmAnswer) GetConfirmed() bool

func (*ConfirmAnswer) ProtoMessage

func (*ConfirmAnswer) ProtoMessage()

func (*ConfirmAnswer) ProtoReflect

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

func (*ConfirmAnswer) Reset

func (x *ConfirmAnswer) Reset()

func (*ConfirmAnswer) String

func (x *ConfirmAnswer) String() string

type Display

type Display struct {
	Data map[string]string `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Display) Descriptor deprecated

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

Deprecated: Use Display.ProtoReflect.Descriptor instead.

func (*Display) GetData

func (x *Display) GetData() map[string]string

func (*Display) ProtoMessage

func (*Display) ProtoMessage()

func (*Display) ProtoReflect

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

func (*Display) Reset

func (x *Display) Reset()

func (*Display) String

func (x *Display) String() string

type Engage

type Engage struct {
	Method Method  `protobuf:"varint,1,opt,name=method,proto3,enum=v1.agents.communicate.Method" json:"method,omitempty"`
	Answer *Answer `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"`
	// contains filtered or unexported fields
}

func (*Engage) Descriptor deprecated

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

Deprecated: Use Engage.ProtoReflect.Descriptor instead.

func (*Engage) GetAnswer

func (x *Engage) GetAnswer() *Answer

func (*Engage) GetMethod

func (x *Engage) GetMethod() Method

func (*Engage) ProtoMessage

func (*Engage) ProtoMessage()

func (*Engage) ProtoReflect

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

func (*Engage) Reset

func (x *Engage) Reset()

func (*Engage) String

func (x *Engage) String() string

type InformationRequest

type InformationRequest struct {
	Method   Method    `protobuf:"varint,1,opt,name=method,proto3,enum=v1.agents.communicate.Method" json:"method,omitempty"`
	Done     bool      `protobuf:"varint,2,opt,name=done,proto3" json:"done,omitempty"`
	Question *Question `protobuf:"bytes,3,opt,name=question,proto3" json:"question,omitempty"`
	// contains filtered or unexported fields
}

func (*InformationRequest) Descriptor deprecated

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

Deprecated: Use InformationRequest.ProtoReflect.Descriptor instead.

func (*InformationRequest) GetDone

func (x *InformationRequest) GetDone() bool

func (*InformationRequest) GetMethod

func (x *InformationRequest) GetMethod() Method

func (*InformationRequest) GetQuestion

func (x *InformationRequest) GetQuestion() *Question

func (*InformationRequest) ProtoMessage

func (*InformationRequest) ProtoMessage()

func (*InformationRequest) ProtoReflect

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

func (*InformationRequest) Reset

func (x *InformationRequest) Reset()

func (*InformationRequest) String

func (x *InformationRequest) String() string

type Input

type Input struct {

	// Types that are assignable to Default:
	//
	//	*Input_StringDefault
	//	*Input_IntDefault
	Default isInput_Default `protobuf_oneof:"default"`
	// contains filtered or unexported fields
}

func (*Input) Descriptor deprecated

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

Deprecated: Use Input.ProtoReflect.Descriptor instead.

func (*Input) GetDefault

func (m *Input) GetDefault() isInput_Default

func (*Input) GetIntDefault

func (x *Input) GetIntDefault() int32

func (*Input) GetStringDefault

func (x *Input) GetStringDefault() string

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) ProtoReflect

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

func (*Input) Reset

func (x *Input) Reset()

func (*Input) String

func (x *Input) String() string

type InputAnswer

type InputAnswer struct {

	// Types that are assignable to Answer:
	//
	//	*InputAnswer_StringValue
	//	*InputAnswer_IntValue
	Answer isInputAnswer_Answer `protobuf_oneof:"answer"`
	// contains filtered or unexported fields
}

func (*InputAnswer) Descriptor deprecated

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

Deprecated: Use InputAnswer.ProtoReflect.Descriptor instead.

func (*InputAnswer) GetAnswer

func (m *InputAnswer) GetAnswer() isInputAnswer_Answer

func (*InputAnswer) GetIntValue

func (x *InputAnswer) GetIntValue() int32

func (*InputAnswer) GetStringValue

func (x *InputAnswer) GetStringValue() string

func (*InputAnswer) ProtoMessage

func (*InputAnswer) ProtoMessage()

func (*InputAnswer) ProtoReflect

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

func (*InputAnswer) Reset

func (x *InputAnswer) Reset()

func (*InputAnswer) String

func (x *InputAnswer) String() string

type InputAnswer_IntValue

type InputAnswer_IntValue struct {
	IntValue int32 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}

type InputAnswer_StringValue

type InputAnswer_StringValue struct {
	StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type Input_IntDefault

type Input_IntDefault struct {
	IntDefault int32 `protobuf:"varint,2,opt,name=int_default,json=intDefault,proto3,oneof"`
}

type Input_StringDefault

type Input_StringDefault struct {
	StringDefault string `protobuf:"bytes,1,opt,name=string_default,json=stringDefault,proto3,oneof"`
}

type Log

type Log struct {
	At          *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=at,proto3" json:"at,omitempty"`
	Application string                 `protobuf:"bytes,2,opt,name=application,proto3" json:"application,omitempty"`
	Service     string                 `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
	Kind        Log_Kind               `protobuf:"varint,4,opt,name=kind,proto3,enum=v1.agents.logs.Log_Kind" json:"kind,omitempty"`
	Message     string                 `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Log) Descriptor deprecated

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

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetApplication

func (x *Log) GetApplication() string

func (*Log) GetAt

func (x *Log) GetAt() *timestamppb.Timestamp

func (*Log) GetKind

func (x *Log) GetKind() Log_Kind

func (*Log) GetMessage

func (x *Log) GetMessage() string

func (*Log) GetService

func (x *Log) GetService() string

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type LogSessionGroup

type LogSessionGroup struct {
	Session *base.Session `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"`
	Logs    []*Log        `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

func (*LogSessionGroup) Descriptor deprecated

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

Deprecated: Use LogSessionGroup.ProtoReflect.Descriptor instead.

func (*LogSessionGroup) GetLogs

func (x *LogSessionGroup) GetLogs() []*Log

func (*LogSessionGroup) GetSession

func (x *LogSessionGroup) GetSession() *base.Session

func (*LogSessionGroup) ProtoMessage

func (*LogSessionGroup) ProtoMessage()

func (*LogSessionGroup) ProtoReflect

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

func (*LogSessionGroup) Reset

func (x *LogSessionGroup) Reset()

func (*LogSessionGroup) String

func (x *LogSessionGroup) String() string

type Log_Kind

type Log_Kind int32
const (
	Log_UNKNOWN Log_Kind = 0
	Log_AGENT   Log_Kind = 1
	Log_SERVICE Log_Kind = 2
)

func (Log_Kind) Descriptor

func (Log_Kind) Descriptor() protoreflect.EnumDescriptor

func (Log_Kind) Enum

func (x Log_Kind) Enum() *Log_Kind

func (Log_Kind) EnumDescriptor deprecated

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

Deprecated: Use Log_Kind.Descriptor instead.

func (Log_Kind) Number

func (x Log_Kind) Number() protoreflect.EnumNumber

func (Log_Kind) String

func (x Log_Kind) String() string

func (Log_Kind) Type

type Message

type Message struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Message     string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetDescription

func (x *Message) GetDescription() string

func (*Message) GetMessage

func (x *Message) GetMessage() string

func (*Message) GetName

func (x *Message) GetName() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Method

type Method int32
const (
	Method_UNKNOWN Method = 0
	// Factory
	Method_CREATE Method = 1
	// Runtime
	Method_SYNC Method = 10
)

func (Method) Descriptor

func (Method) Descriptor() protoreflect.EnumDescriptor

func (Method) Enum

func (x Method) Enum() *Method

func (Method) EnumDescriptor deprecated

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

Deprecated: Use Method.Descriptor instead.

func (Method) Number

func (x Method) Number() protoreflect.EnumNumber

func (Method) String

func (x Method) String() string

func (Method) Type

func (Method) Type() protoreflect.EnumType

type Question

type Question struct {
	Method  Method   `protobuf:"varint,1,opt,name=method,proto3,enum=v1.agents.communicate.Method" json:"method,omitempty"`
	Round   int32    `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
	Message *Message `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// Types that are assignable to Value:
	//
	//	*Question_Display
	//	*Question_Confirm
	//	*Question_Input
	//	*Question_Choice
	//	*Question_Selection
	Value isQuestion_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Question) Descriptor deprecated

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

Deprecated: Use Question.ProtoReflect.Descriptor instead.

func (*Question) GetChoice

func (x *Question) GetChoice() *Choice

func (*Question) GetConfirm

func (x *Question) GetConfirm() *Confirm

func (*Question) GetDisplay

func (x *Question) GetDisplay() *Display

func (*Question) GetInput

func (x *Question) GetInput() *Input

func (*Question) GetMessage

func (x *Question) GetMessage() *Message

func (*Question) GetMethod

func (x *Question) GetMethod() Method

func (*Question) GetRound

func (x *Question) GetRound() int32

func (*Question) GetSelection

func (x *Question) GetSelection() *Selection

func (*Question) GetValue

func (m *Question) GetValue() isQuestion_Value

func (*Question) ProtoMessage

func (*Question) ProtoMessage()

func (*Question) ProtoReflect

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

func (*Question) Reset

func (x *Question) Reset()

func (*Question) String

func (x *Question) String() string

type Question_Choice

type Question_Choice struct {
	Choice *Choice `protobuf:"bytes,7,opt,name=choice,proto3,oneof"`
}

type Question_Confirm

type Question_Confirm struct {
	Confirm *Confirm `protobuf:"bytes,5,opt,name=confirm,proto3,oneof"`
}

type Question_Display

type Question_Display struct {
	Display *Display `protobuf:"bytes,4,opt,name=display,proto3,oneof"`
}

type Question_Input

type Question_Input struct {
	Input *Input `protobuf:"bytes,6,opt,name=input,proto3,oneof"`
}

type Question_Selection

type Question_Selection struct {
	Selection *Selection `protobuf:"bytes,8,opt,name=selection,proto3,oneof"`
}

type Selection

type Selection struct {
	Options []*Message `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*Selection) Descriptor deprecated

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

Deprecated: Use Selection.ProtoReflect.Descriptor instead.

func (*Selection) GetOptions

func (x *Selection) GetOptions() []*Message

func (*Selection) ProtoMessage

func (*Selection) ProtoMessage()

func (*Selection) ProtoReflect

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

func (*Selection) Reset

func (x *Selection) Reset()

func (*Selection) String

func (x *Selection) String() string

type SelectionAnswer

type SelectionAnswer struct {
	Selected []string `protobuf:"bytes,1,rep,name=selected,proto3" json:"selected,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectionAnswer) Descriptor deprecated

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

Deprecated: Use SelectionAnswer.ProtoReflect.Descriptor instead.

func (*SelectionAnswer) GetSelected

func (x *SelectionAnswer) GetSelected() []string

func (*SelectionAnswer) ProtoMessage

func (*SelectionAnswer) ProtoMessage()

func (*SelectionAnswer) ProtoReflect

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

func (*SelectionAnswer) Reset

func (x *SelectionAnswer) Reset()

func (*SelectionAnswer) String

func (x *SelectionAnswer) String() string

Jump to

Keyboard shortcuts

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