messages

package
v0.0.0-...-96e9dc5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_sym_messages_approval_proto protoreflect.FileDescriptor
View Source
var File_sym_messages_response_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Approval

type Approval struct {
	Id     string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Schema *models.Schema   `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
	Target *Approval_Target `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	Meta   *Approval_Meta   `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

Approval messages represent approval for a target user to use a resource

func (*Approval) Descriptor deprecated

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

Deprecated: Use Approval.ProtoReflect.Descriptor instead.

func (*Approval) GetId

func (x *Approval) GetId() string

func (*Approval) GetMeta

func (x *Approval) GetMeta() *Approval_Meta

func (*Approval) GetSchema

func (x *Approval) GetSchema() *models.Schema

func (*Approval) GetTarget

func (x *Approval) GetTarget() *Approval_Target

func (*Approval) ProtoMessage

func (*Approval) ProtoMessage()

func (*Approval) ProtoReflect

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

func (*Approval) Reset

func (x *Approval) Reset()

func (*Approval) String

func (x *Approval) String() string

type Approval_Meta

type Approval_Meta struct {
	Approver *models.User `protobuf:"bytes,1,opt,name=approver,proto3" json:"approver,omitempty"`
	Reason   string       `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // user-defined arbitrary reason
	// contains filtered or unexported fields
}

func (*Approval_Meta) Descriptor deprecated

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

Deprecated: Use Approval_Meta.ProtoReflect.Descriptor instead.

func (*Approval_Meta) GetApprover

func (x *Approval_Meta) GetApprover() *models.User

func (*Approval_Meta) GetReason

func (x *Approval_Meta) GetReason() string

func (*Approval_Meta) ProtoMessage

func (*Approval_Meta) ProtoMessage()

func (*Approval_Meta) ProtoReflect

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

func (*Approval_Meta) Reset

func (x *Approval_Meta) Reset()

func (*Approval_Meta) String

func (x *Approval_Meta) String() string

type Approval_Target

type Approval_Target struct {
	User     *models.User     `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Resource *models.Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

Target of approval is a user and resource

func (*Approval_Target) Descriptor deprecated

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

Deprecated: Use Approval_Target.ProtoReflect.Descriptor instead.

func (*Approval_Target) GetResource

func (x *Approval_Target) GetResource() *models.Resource

func (*Approval_Target) GetUser

func (x *Approval_Target) GetUser() *models.User

func (*Approval_Target) ProtoMessage

func (*Approval_Target) ProtoMessage()

func (*Approval_Target) ProtoReflect

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

func (*Approval_Target) Reset

func (x *Approval_Target) Reset()

func (*Approval_Target) String

func (x *Approval_Target) String() string

type EscalationResponse

type EscalationResponse struct {
	Ok    bool   `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // error message when not ok
	// contains filtered or unexported fields
}

EscalationResponse gets sent back upon successful escalations

func (*EscalationResponse) Descriptor deprecated

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

Deprecated: Use EscalationResponse.ProtoReflect.Descriptor instead.

func (*EscalationResponse) GetError

func (x *EscalationResponse) GetError() string

func (*EscalationResponse) GetOk

func (x *EscalationResponse) GetOk() bool

func (*EscalationResponse) ProtoMessage

func (*EscalationResponse) ProtoMessage()

func (*EscalationResponse) ProtoReflect

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

func (*EscalationResponse) Reset

func (x *EscalationResponse) Reset()

func (*EscalationResponse) String

func (x *EscalationResponse) String() string

type ExpirationResponse

type ExpirationResponse struct {
	Ok    bool   `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // error message when not ok
	// contains filtered or unexported fields
}

ExpirationResponse gets sent back upon successful escalations

func (*ExpirationResponse) Descriptor deprecated

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

Deprecated: Use ExpirationResponse.ProtoReflect.Descriptor instead.

func (*ExpirationResponse) GetError

func (x *ExpirationResponse) GetError() string

func (*ExpirationResponse) GetOk

func (x *ExpirationResponse) GetOk() bool

func (*ExpirationResponse) ProtoMessage

func (*ExpirationResponse) ProtoMessage()

func (*ExpirationResponse) ProtoReflect

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

func (*ExpirationResponse) Reset

func (x *ExpirationResponse) Reset()

func (*ExpirationResponse) String

func (x *ExpirationResponse) String() string

Jump to

Keyboard shortcuts

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