Documentation
¶
Index ¶
- Variables
- type AuthDetail
- func (*AuthDetail) Descriptor() ([]byte, []int)deprecated
- func (x *AuthDetail) GetDenyCause() string
- func (x *AuthDetail) GetIdentity() string
- func (x *AuthDetail) GetPrivilegeLevel() uint32
- func (x *AuthDetail) GetStatus() AuthDetail_AuthenStatus
- func (*AuthDetail) ProtoMessage()
- func (x *AuthDetail) ProtoReflect() protoreflect.Message
- func (x *AuthDetail) Reset()
- func (x *AuthDetail) String() string
- type AuthDetail_AuthenStatus
- func (AuthDetail_AuthenStatus) Descriptor() protoreflect.EnumDescriptor
- func (x AuthDetail_AuthenStatus) Enum() *AuthDetail_AuthenStatus
- func (AuthDetail_AuthenStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthDetail_AuthenStatus) Number() protoreflect.EnumNumber
- func (x AuthDetail_AuthenStatus) String() string
- func (AuthDetail_AuthenStatus) Type() protoreflect.EnumType
- type CommandService
- func (*CommandService) Descriptor() ([]byte, []int)deprecated
- func (x *CommandService) GetCmd() string
- func (x *CommandService) GetCmdArgs() []string
- func (x *CommandService) GetServiceType() CommandService_CmdServiceType
- func (*CommandService) ProtoMessage()
- func (x *CommandService) ProtoReflect() protoreflect.Message
- func (x *CommandService) Reset()
- func (x *CommandService) String() string
- type CommandService_CmdServiceType
- func (CommandService_CmdServiceType) Descriptor() protoreflect.EnumDescriptor
- func (x CommandService_CmdServiceType) Enum() *CommandService_CmdServiceType
- func (CommandService_CmdServiceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CommandService_CmdServiceType) Number() protoreflect.EnumNumber
- func (x CommandService_CmdServiceType) String() string
- func (CommandService_CmdServiceType) Type() protoreflect.EnumType
- type GrpcService
- func (*GrpcService) Descriptor() ([]byte, []int)deprecated
- func (x *GrpcService) GetConfigMetadata() string
- func (x *GrpcService) GetPayloads() []*anypb.Any
- func (x *GrpcService) GetRpcName() string
- func (x *GrpcService) GetServiceType() GrpcService_GrpcServiceType
- func (*GrpcService) ProtoMessage()
- func (x *GrpcService) ProtoReflect() protoreflect.Message
- func (x *GrpcService) Reset()
- func (x *GrpcService) String() string
- type GrpcService_GrpcServiceType
- func (GrpcService_GrpcServiceType) Descriptor() protoreflect.EnumDescriptor
- func (x GrpcService_GrpcServiceType) Enum() *GrpcService_GrpcServiceType
- func (GrpcService_GrpcServiceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x GrpcService_GrpcServiceType) Number() protoreflect.EnumNumber
- func (x GrpcService_GrpcServiceType) String() string
- func (GrpcService_GrpcServiceType) Type() protoreflect.EnumType
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetAuthen() *AuthDetail
- func (x *Record) GetCmdService() *CommandService
- func (x *Record) GetFailureCause() string
- func (x *Record) GetGrpcService() *GrpcService
- func (m *Record) GetServiceRequest() isRecord_ServiceRequest
- func (x *Record) GetSessionInfo() *SessionInfo
- func (x *Record) GetStatus() Record_ServiceStatus
- func (x *Record) GetTaskIds() []string
- func (x *Record) GetTimestamp() *timestamppb.Timestamp
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type Record_CmdService
- type Record_GrpcService
- type Record_ServiceStatus
- func (Record_ServiceStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Record_ServiceStatus) Enum() *Record_ServiceStatus
- func (Record_ServiceStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Record_ServiceStatus) Number() protoreflect.EnumNumber
- func (x Record_ServiceStatus) String() string
- func (Record_ServiceStatus) Type() protoreflect.EnumType
- type SessionInfo
- func (*SessionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SessionInfo) GetChannelId() string
- func (x *SessionInfo) GetLayer4Proto() uint32
- func (x *SessionInfo) GetLocalPort() uint32
- func (x *SessionInfo) GetRemoteAddress() string
- func (x *SessionInfo) GetRemotePort() uint32
- func (x *SessionInfo) GetSystemAddress() string
- func (*SessionInfo) ProtoMessage()
- func (x *SessionInfo) ProtoReflect() protoreflect.Message
- func (x *SessionInfo) Reset()
- func (x *SessionInfo) String() string
Constants ¶
This section is empty.
Variables ¶
var ( AuthDetail_AuthenStatus_name = map[int32]string{ 0: "AUTHEN_STATUS_UNSPECIFIED", 1: "AUTHEN_STATUS_PERMIT", 2: "AUTHEN_STATUS_DENY", } AuthDetail_AuthenStatus_value = map[string]int32{ "AUTHEN_STATUS_UNSPECIFIED": 0, "AUTHEN_STATUS_PERMIT": 1, "AUTHEN_STATUS_DENY": 2, } )
Enum value maps for AuthDetail_AuthenStatus.
var ( CommandService_CmdServiceType_name = map[int32]string{ 0: "CMD_SERVICE_TYPE_UNSPECIFIED", 1: "CMD_SERVICE_TYPE_SHELL", 2: "CMD_SERVICE_TYPE_CLI", } CommandService_CmdServiceType_value = map[string]int32{ "CMD_SERVICE_TYPE_UNSPECIFIED": 0, "CMD_SERVICE_TYPE_SHELL": 1, "CMD_SERVICE_TYPE_CLI": 2, } )
Enum value maps for CommandService_CmdServiceType.
var ( GrpcService_GrpcServiceType_name = map[int32]string{ 0: "GRPC_SERVICE_TYPE_UNSPECIFIED", 1: "GRPC_SERVICE_TYPE_GNMI", 2: "GRPC_SERVICE_TYPE_GNOI", 3: "GRPC_SERVICE_TYPE_GNSI", 4: "GRPC_SERVICE_TYPE_GRIBI", } GrpcService_GrpcServiceType_value = map[string]int32{ "GRPC_SERVICE_TYPE_UNSPECIFIED": 0, "GRPC_SERVICE_TYPE_GNMI": 1, "GRPC_SERVICE_TYPE_GNOI": 2, "GRPC_SERVICE_TYPE_GNSI": 3, "GRPC_SERVICE_TYPE_GRIBI": 4, } )
Enum value maps for GrpcService_GrpcServiceType.
var ( Record_ServiceStatus_name = map[int32]string{ 0: "SERVICE_STATUS_UNSPECIFIED", 1: "SERVICE_STATUS_SUCCESS", 2: "SERVICE_STATUS_FAILURE", } Record_ServiceStatus_value = map[string]int32{ "SERVICE_STATUS_UNSPECIFIED": 0, "SERVICE_STATUS_SUCCESS": 1, "SERVICE_STATUS_FAILURE": 2, } )
Enum value maps for Record_ServiceStatus.
var File_github_com_openconfig_gnsi_accounting_acct_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthDetail ¶
type AuthDetail struct {
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
PrivilegeLevel uint32 `protobuf:"varint,2,opt,name=privilege_level,json=privilegeLevel,proto3" json:"privilege_level,omitempty"`
Status AuthDetail_AuthenStatus `protobuf:"varint,3,opt,name=status,proto3,enum=gnsi.accounting.AuthDetail_AuthenStatus" json:"status,omitempty"`
DenyCause string `protobuf:"bytes,4,opt,name=deny_cause,json=denyCause,proto3" json:"deny_cause,omitempty"`
// contains filtered or unexported fields
}
func (*AuthDetail) Descriptor
deprecated
func (*AuthDetail) Descriptor() ([]byte, []int)
Deprecated: Use AuthDetail.ProtoReflect.Descriptor instead.
func (*AuthDetail) GetDenyCause ¶
func (x *AuthDetail) GetDenyCause() string
func (*AuthDetail) GetIdentity ¶
func (x *AuthDetail) GetIdentity() string
func (*AuthDetail) GetPrivilegeLevel ¶
func (x *AuthDetail) GetPrivilegeLevel() uint32
func (*AuthDetail) GetStatus ¶
func (x *AuthDetail) GetStatus() AuthDetail_AuthenStatus
func (*AuthDetail) ProtoMessage ¶
func (*AuthDetail) ProtoMessage()
func (*AuthDetail) ProtoReflect ¶
func (x *AuthDetail) ProtoReflect() protoreflect.Message
func (*AuthDetail) Reset ¶
func (x *AuthDetail) Reset()
func (*AuthDetail) String ¶
func (x *AuthDetail) String() string
type AuthDetail_AuthenStatus ¶
type AuthDetail_AuthenStatus int32
const ( AuthDetail_AUTHEN_STATUS_UNSPECIFIED AuthDetail_AuthenStatus = 0 AuthDetail_AUTHEN_STATUS_PERMIT AuthDetail_AuthenStatus = 1 AuthDetail_AUTHEN_STATUS_DENY AuthDetail_AuthenStatus = 2 )
func (AuthDetail_AuthenStatus) Descriptor ¶
func (AuthDetail_AuthenStatus) Descriptor() protoreflect.EnumDescriptor
func (AuthDetail_AuthenStatus) Enum ¶
func (x AuthDetail_AuthenStatus) Enum() *AuthDetail_AuthenStatus
func (AuthDetail_AuthenStatus) EnumDescriptor
deprecated
func (AuthDetail_AuthenStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthDetail_AuthenStatus.Descriptor instead.
func (AuthDetail_AuthenStatus) Number ¶
func (x AuthDetail_AuthenStatus) Number() protoreflect.EnumNumber
func (AuthDetail_AuthenStatus) String ¶
func (x AuthDetail_AuthenStatus) String() string
func (AuthDetail_AuthenStatus) Type ¶
func (AuthDetail_AuthenStatus) Type() protoreflect.EnumType
type CommandService ¶
type CommandService struct {
ServiceType CommandService_CmdServiceType `` /* 146-byte string literal not displayed */
Cmd string `protobuf:"bytes,2,opt,name=cmd,proto3" json:"cmd,omitempty"`
CmdArgs []string `protobuf:"bytes,3,rep,name=cmd_args,json=cmdArgs,proto3" json:"cmd_args,omitempty"`
// contains filtered or unexported fields
}
func (*CommandService) Descriptor
deprecated
func (*CommandService) Descriptor() ([]byte, []int)
Deprecated: Use CommandService.ProtoReflect.Descriptor instead.
func (*CommandService) GetCmd ¶
func (x *CommandService) GetCmd() string
func (*CommandService) GetCmdArgs ¶
func (x *CommandService) GetCmdArgs() []string
func (*CommandService) GetServiceType ¶
func (x *CommandService) GetServiceType() CommandService_CmdServiceType
func (*CommandService) ProtoMessage ¶
func (*CommandService) ProtoMessage()
func (*CommandService) ProtoReflect ¶
func (x *CommandService) ProtoReflect() protoreflect.Message
func (*CommandService) Reset ¶
func (x *CommandService) Reset()
func (*CommandService) String ¶
func (x *CommandService) String() string
type CommandService_CmdServiceType ¶
type CommandService_CmdServiceType int32
const ( CommandService_CMD_SERVICE_TYPE_UNSPECIFIED CommandService_CmdServiceType = 0 CommandService_CMD_SERVICE_TYPE_SHELL CommandService_CmdServiceType = 1 CommandService_CMD_SERVICE_TYPE_CLI CommandService_CmdServiceType = 2 )
func (CommandService_CmdServiceType) Descriptor ¶
func (CommandService_CmdServiceType) Descriptor() protoreflect.EnumDescriptor
func (CommandService_CmdServiceType) Enum ¶
func (x CommandService_CmdServiceType) Enum() *CommandService_CmdServiceType
func (CommandService_CmdServiceType) EnumDescriptor
deprecated
func (CommandService_CmdServiceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CommandService_CmdServiceType.Descriptor instead.
func (CommandService_CmdServiceType) Number ¶
func (x CommandService_CmdServiceType) Number() protoreflect.EnumNumber
func (CommandService_CmdServiceType) String ¶
func (x CommandService_CmdServiceType) String() string
func (CommandService_CmdServiceType) Type ¶
func (CommandService_CmdServiceType) Type() protoreflect.EnumType
type GrpcService ¶
type GrpcService struct {
ServiceType GrpcService_GrpcServiceType `` /* 144-byte string literal not displayed */
RpcName string `protobuf:"bytes,2,opt,name=rpc_name,json=rpcName,proto3" json:"rpc_name,omitempty"`
Payloads []*anypb.Any `protobuf:"bytes,3,rep,name=payloads,proto3" json:"payloads,omitempty"`
ConfigMetadata string `protobuf:"bytes,4,opt,name=config_metadata,json=configMetadata,proto3" json:"config_metadata,omitempty"`
// contains filtered or unexported fields
}
func (*GrpcService) Descriptor
deprecated
func (*GrpcService) Descriptor() ([]byte, []int)
Deprecated: Use GrpcService.ProtoReflect.Descriptor instead.
func (*GrpcService) GetConfigMetadata ¶
func (x *GrpcService) GetConfigMetadata() string
func (*GrpcService) GetPayloads ¶
func (x *GrpcService) GetPayloads() []*anypb.Any
func (*GrpcService) GetRpcName ¶
func (x *GrpcService) GetRpcName() string
func (*GrpcService) GetServiceType ¶
func (x *GrpcService) GetServiceType() GrpcService_GrpcServiceType
func (*GrpcService) ProtoMessage ¶
func (*GrpcService) ProtoMessage()
func (*GrpcService) ProtoReflect ¶
func (x *GrpcService) ProtoReflect() protoreflect.Message
func (*GrpcService) Reset ¶
func (x *GrpcService) Reset()
func (*GrpcService) String ¶
func (x *GrpcService) String() string
type GrpcService_GrpcServiceType ¶
type GrpcService_GrpcServiceType int32
const ( GrpcService_GRPC_SERVICE_TYPE_UNSPECIFIED GrpcService_GrpcServiceType = 0 GrpcService_GRPC_SERVICE_TYPE_GNMI GrpcService_GrpcServiceType = 1 GrpcService_GRPC_SERVICE_TYPE_GNOI GrpcService_GrpcServiceType = 2 GrpcService_GRPC_SERVICE_TYPE_GNSI GrpcService_GrpcServiceType = 3 GrpcService_GRPC_SERVICE_TYPE_GRIBI GrpcService_GrpcServiceType = 4 )
func (GrpcService_GrpcServiceType) Descriptor ¶
func (GrpcService_GrpcServiceType) Descriptor() protoreflect.EnumDescriptor
func (GrpcService_GrpcServiceType) Enum ¶
func (x GrpcService_GrpcServiceType) Enum() *GrpcService_GrpcServiceType
func (GrpcService_GrpcServiceType) EnumDescriptor
deprecated
func (GrpcService_GrpcServiceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use GrpcService_GrpcServiceType.Descriptor instead.
func (GrpcService_GrpcServiceType) Number ¶
func (x GrpcService_GrpcServiceType) Number() protoreflect.EnumNumber
func (GrpcService_GrpcServiceType) String ¶
func (x GrpcService_GrpcServiceType) String() string
func (GrpcService_GrpcServiceType) Type ¶
func (GrpcService_GrpcServiceType) Type() protoreflect.EnumType
type Record ¶
type Record struct {
SessionInfo *SessionInfo `protobuf:"bytes,1,opt,name=session_info,json=sessionInfo,proto3" json:"session_info,omitempty"`
Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Types that are assignable to ServiceRequest:
// *Record_CmdService
// *Record_GrpcService
ServiceRequest isRecord_ServiceRequest `protobuf_oneof:"service_request"`
Status Record_ServiceStatus `protobuf:"varint,5,opt,name=status,proto3,enum=gnsi.accounting.Record_ServiceStatus" json:"status,omitempty"`
FailureCause string `protobuf:"bytes,6,opt,name=failure_cause,json=failureCause,proto3" json:"failure_cause,omitempty"`
Authen *AuthDetail `protobuf:"bytes,7,opt,name=authen,proto3" json:"authen,omitempty"`
TaskIds []string `protobuf:"bytes,32,rep,name=task_ids,json=taskIds,proto3" json:"task_ids,omitempty"`
// contains filtered or unexported fields
}
func (*Record) Descriptor
deprecated
func (*Record) GetAuthen ¶
func (x *Record) GetAuthen() *AuthDetail
func (*Record) GetCmdService ¶
func (x *Record) GetCmdService() *CommandService
func (*Record) GetFailureCause ¶
func (*Record) GetGrpcService ¶
func (x *Record) GetGrpcService() *GrpcService
func (*Record) GetServiceRequest ¶
func (m *Record) GetServiceRequest() isRecord_ServiceRequest
func (*Record) GetSessionInfo ¶
func (x *Record) GetSessionInfo() *SessionInfo
func (*Record) GetStatus ¶
func (x *Record) GetStatus() Record_ServiceStatus
func (*Record) GetTaskIds ¶
func (*Record) GetTimestamp ¶
func (x *Record) GetTimestamp() *timestamppb.Timestamp
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type Record_CmdService ¶
type Record_CmdService struct {
CmdService *CommandService `protobuf:"bytes,3,opt,name=cmd_service,json=cmdService,proto3,oneof"`
}
type Record_GrpcService ¶
type Record_GrpcService struct {
GrpcService *GrpcService `protobuf:"bytes,4,opt,name=grpc_service,json=grpcService,proto3,oneof"`
}
type Record_ServiceStatus ¶
type Record_ServiceStatus int32
const ( Record_SERVICE_STATUS_UNSPECIFIED Record_ServiceStatus = 0 Record_SERVICE_STATUS_SUCCESS Record_ServiceStatus = 1 Record_SERVICE_STATUS_FAILURE Record_ServiceStatus = 2 )
func (Record_ServiceStatus) Descriptor ¶
func (Record_ServiceStatus) Descriptor() protoreflect.EnumDescriptor
func (Record_ServiceStatus) Enum ¶
func (x Record_ServiceStatus) Enum() *Record_ServiceStatus
func (Record_ServiceStatus) EnumDescriptor
deprecated
func (Record_ServiceStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Record_ServiceStatus.Descriptor instead.
func (Record_ServiceStatus) Number ¶
func (x Record_ServiceStatus) Number() protoreflect.EnumNumber
func (Record_ServiceStatus) String ¶
func (x Record_ServiceStatus) String() string
func (Record_ServiceStatus) Type ¶
func (Record_ServiceStatus) Type() protoreflect.EnumType
type SessionInfo ¶
type SessionInfo struct {
SystemAddress string `protobuf:"bytes,1,opt,name=system_address,json=systemAddress,proto3" json:"system_address,omitempty"`
Layer4Proto uint32 `protobuf:"varint,2,opt,name=layer4_proto,json=layer4Proto,proto3" json:"layer4_proto,omitempty"`
LocalPort uint32 `protobuf:"varint,3,opt,name=local_port,json=localPort,proto3" json:"local_port,omitempty"`
RemoteAddress string `protobuf:"bytes,4,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"`
RemotePort uint32 `protobuf:"varint,5,opt,name=remote_port,json=remotePort,proto3" json:"remote_port,omitempty"`
ChannelId string `protobuf:"bytes,6,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
// contains filtered or unexported fields
}
func (*SessionInfo) Descriptor
deprecated
func (*SessionInfo) Descriptor() ([]byte, []int)
Deprecated: Use SessionInfo.ProtoReflect.Descriptor instead.
func (*SessionInfo) GetChannelId ¶
func (x *SessionInfo) GetChannelId() string
func (*SessionInfo) GetLayer4Proto ¶
func (x *SessionInfo) GetLayer4Proto() uint32
func (*SessionInfo) GetLocalPort ¶
func (x *SessionInfo) GetLocalPort() uint32
func (*SessionInfo) GetRemoteAddress ¶
func (x *SessionInfo) GetRemoteAddress() string
func (*SessionInfo) GetRemotePort ¶
func (x *SessionInfo) GetRemotePort() uint32
func (*SessionInfo) GetSystemAddress ¶
func (x *SessionInfo) GetSystemAddress() string
func (*SessionInfo) ProtoMessage ¶
func (*SessionInfo) ProtoMessage()
func (*SessionInfo) ProtoReflect ¶
func (x *SessionInfo) ProtoReflect() protoreflect.Message
func (*SessionInfo) Reset ¶
func (x *SessionInfo) Reset()
func (*SessionInfo) String ¶
func (x *SessionInfo) String() string