acctz

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 11 Imported by: 4

README

gNSI Accounting Protocol

Objective

This proto definition serves to describe a method of transfering accounting records from a System, which may be a network device, to a remote collection service, primarily over a gRPC transport connection.

Method of Operation

Accounting Records are available at a gNSI origin: gnsi.acctz

Records may be streamed from a system at request of the remote collector, via the RecordSubscribe() service/rpc.

Configuration of the Accounting service is made through standard gNxI methods using the defined YANG model.

Records will be streamed to the receiver as individual Record messages as they are defined in the gnsi.acctz protocol buffer definition.

Each Record() message contains a timestamp element, this represents the time at which the accounted event occured, local to the system which sends the message. This could be different from the time received at the Collector and the time the Record was emitted from the system.

The stream continues as new records are received by the accounting subsystem, ending when the gNSI session ends or an error occurs.

Devices should maintain a history of accounting records so that they can be retrieved periodically by newly and already connected Collectors. The depth of this history should be configurable by the administrator. The default depth and configurability are subject to implementation support, but should be documented.

OpenConfig Extension for the gMNI gRPC-based Accounting telemetry

gnsi-acctz.yang

An overview of the changes defined in the gnsi-acctz.yang file are shown below.

module: gnsi-acctz
  augment /oc-sys:system/oc-sys-grpc:grpc-servers/oc-sys-grpc:grpc-server:
    +--ro counters
       +--ro last-cleared-on?   oc-types:timeticks64
       +--ro client-counters
       |  +--ro history_istruncated?   oc-yang:counter64
       |  +--ro IdleTimeouts?          oc-yang:counter64
       |  +--ro RecordRequests?        oc-yang:counter64
       |  +--ro RecordResponses?       oc-yang:counter64
       +--ro source-counters
          +--ro source-records* [service type]
             +--ro service    service-request
             +--ro type       service-type
             +--ro records?   oc-yang:counter64

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SessionInfo_SessionStatus_name = map[int32]string{
		0: "SESSION_STATUS_UNSPECIFIED",
		1: "SESSION_STATUS_LOGIN",
		2: "SESSION_STATUS_LOGOUT",
		3: "SESSION_STATUS_ONCE",
		4: "SESSION_STATUS_ENABLE",
		5: "SESSION_STATUS_IDLE",
		6: "SESSION_STATUS_OPERATION",
	}
	SessionInfo_SessionStatus_value = map[string]int32{
		"SESSION_STATUS_UNSPECIFIED": 0,
		"SESSION_STATUS_LOGIN":       1,
		"SESSION_STATUS_LOGOUT":      2,
		"SESSION_STATUS_ONCE":        3,
		"SESSION_STATUS_ENABLE":      4,
		"SESSION_STATUS_IDLE":        5,
		"SESSION_STATUS_OPERATION":   6,
	}
)

Enum value maps for SessionInfo_SessionStatus.

View Source
var (
	AuthnDetail_AuthnType_name = map[int32]string{
		0: "AUTHN_TYPE_UNSPECIFIED",
		1: "AUTHN_TYPE_NONE",
		2: "AUTHN_TYPE_PASSWORD",
		3: "AUTHN_TYPE_SSHKEY",
		4: "AUTHN_TYPE_SSHCERT",
		5: "AUTHN_TYPE_TLSCERT",
		6: "AUTHN_TYPE_PAP",
		7: "AUTHN_TYPE_CHAP",
	}
	AuthnDetail_AuthnType_value = map[string]int32{
		"AUTHN_TYPE_UNSPECIFIED": 0,
		"AUTHN_TYPE_NONE":        1,
		"AUTHN_TYPE_PASSWORD":    2,
		"AUTHN_TYPE_SSHKEY":      3,
		"AUTHN_TYPE_SSHCERT":     4,
		"AUTHN_TYPE_TLSCERT":     5,
		"AUTHN_TYPE_PAP":         6,
		"AUTHN_TYPE_CHAP":        7,
	}
)

Enum value maps for AuthnDetail_AuthnType.

View Source
var (
	AuthnDetail_AuthnStatus_name = map[int32]string{
		0: "AUTHN_STATUS_UNSPECIFIED",
		1: "AUTHN_STATUS_SUCCESS",
		2: "AUTHN_STATUS_FAIL",
		3: "AUTHN_STATUS_ERROR",
	}
	AuthnDetail_AuthnStatus_value = map[string]int32{
		"AUTHN_STATUS_UNSPECIFIED": 0,
		"AUTHN_STATUS_SUCCESS":     1,
		"AUTHN_STATUS_FAIL":        2,
		"AUTHN_STATUS_ERROR":       3,
	}
)

Enum value maps for AuthnDetail_AuthnStatus.

View Source
var (
	AuthzDetail_AuthzStatus_name = map[int32]string{
		0: "AUTHZ_STATUS_UNSPECIFIED",
		1: "AUTHZ_STATUS_PERMIT",
		2: "AUTHZ_STATUS_DENY",
		3: "AUTHZ_STATUS_ERROR",
	}
	AuthzDetail_AuthzStatus_value = map[string]int32{
		"AUTHZ_STATUS_UNSPECIFIED": 0,
		"AUTHZ_STATUS_PERMIT":      1,
		"AUTHZ_STATUS_DENY":        2,
		"AUTHZ_STATUS_ERROR":       3,
	}
)

Enum value maps for AuthzDetail_AuthzStatus.

View Source
var (
	CommandService_CmdServiceType_name = map[int32]string{
		0: "CMD_SERVICE_TYPE_UNSPECIFIED",
		1: "CMD_SERVICE_TYPE_SHELL",
		2: "CMD_SERVICE_TYPE_CLI",
		3: "CMD_SERVICE_TYPE_WEBUI",
		4: "CMD_SERVICE_TYPE_RESTCONF",
		5: "CMD_SERVICE_TYPE_NETCONF",
	}
	CommandService_CmdServiceType_value = map[string]int32{
		"CMD_SERVICE_TYPE_UNSPECIFIED": 0,
		"CMD_SERVICE_TYPE_SHELL":       1,
		"CMD_SERVICE_TYPE_CLI":         2,
		"CMD_SERVICE_TYPE_WEBUI":       3,
		"CMD_SERVICE_TYPE_RESTCONF":    4,
		"CMD_SERVICE_TYPE_NETCONF":     5,
	}
)

Enum value maps for CommandService_CmdServiceType.

View Source
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",
		5: "GRPC_SERVICE_TYPE_P4RT",
	}
	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,
		"GRPC_SERVICE_TYPE_P4RT":        5,
	}
)

Enum value maps for GrpcService_GrpcServiceType.

View Source
var AcctzStream_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gnsi.acctz.v1.AcctzStream",
	HandlerType: (*AcctzStreamServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "RecordSubscribe",
			Handler:       _AcctzStream_RecordSubscribe_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "github.com/openconfig/gnsi/acctz/acctz.proto",
}

AcctzStream_ServiceDesc is the grpc.ServiceDesc for AcctzStream service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Acctz_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gnsi.acctz.v1.Acctz",
	HandlerType: (*AcctzServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "RecordSubscribe",
			Handler:       _Acctz_RecordSubscribe_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "github.com/openconfig/gnsi/acctz/acctz.proto",
}

Acctz_ServiceDesc is the grpc.ServiceDesc for Acctz service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_github_com_openconfig_gnsi_acctz_acctz_proto protoreflect.FileDescriptor

Functions

func RegisterAcctzServer

func RegisterAcctzServer(s grpc.ServiceRegistrar, srv AcctzServer)

func RegisterAcctzStreamServer added in v1.3.0

func RegisterAcctzStreamServer(s grpc.ServiceRegistrar, srv AcctzStreamServer)

Types

type AcctzClient

type AcctzClient interface {
	RecordSubscribe(ctx context.Context, opts ...grpc.CallOption) (Acctz_RecordSubscribeClient, error)
}

AcctzClient is the client API for Acctz service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAcctzClient

func NewAcctzClient(cc grpc.ClientConnInterface) AcctzClient

type AcctzServer

type AcctzServer interface {
	RecordSubscribe(Acctz_RecordSubscribeServer) error
	// contains filtered or unexported methods
}

AcctzServer is the server API for Acctz service. All implementations must embed UnimplementedAcctzServer for forward compatibility

type AcctzStreamClient added in v1.3.0

type AcctzStreamClient interface {
	RecordSubscribe(ctx context.Context, in *RecordRequest, opts ...grpc.CallOption) (AcctzStream_RecordSubscribeClient, error)
}

AcctzStreamClient is the client API for AcctzStream service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAcctzStreamClient added in v1.3.0

func NewAcctzStreamClient(cc grpc.ClientConnInterface) AcctzStreamClient

type AcctzStreamServer added in v1.3.0

type AcctzStreamServer interface {
	RecordSubscribe(*RecordRequest, AcctzStream_RecordSubscribeServer) error
	// contains filtered or unexported methods
}

AcctzStreamServer is the server API for AcctzStream service. All implementations must embed UnimplementedAcctzStreamServer for forward compatibility

type AcctzStream_RecordSubscribeClient added in v1.3.0

type AcctzStream_RecordSubscribeClient interface {
	Recv() (*RecordResponse, error)
	grpc.ClientStream
}

type AcctzStream_RecordSubscribeServer added in v1.3.0

type AcctzStream_RecordSubscribeServer interface {
	Send(*RecordResponse) error
	grpc.ServerStream
}

type Acctz_RecordSubscribeClient

type Acctz_RecordSubscribeClient interface {
	Send(*RecordRequest) error
	Recv() (*RecordResponse, error)
	grpc.ClientStream
}

type Acctz_RecordSubscribeServer

type Acctz_RecordSubscribeServer interface {
	Send(*RecordResponse) error
	Recv() (*RecordRequest, error)
	grpc.ServerStream
}

type AuthnDetail added in v1.2.4

type AuthnDetail struct {
	Type   AuthnDetail_AuthnType   `protobuf:"varint,1,opt,name=type,proto3,enum=gnsi.acctz.v1.AuthnDetail_AuthnType" json:"type,omitempty"`
	Status AuthnDetail_AuthnStatus `protobuf:"varint,2,opt,name=status,proto3,enum=gnsi.acctz.v1.AuthnDetail_AuthnStatus" json:"status,omitempty"`
	Cause  string                  `protobuf:"bytes,3,opt,name=cause,proto3" json:"cause,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthnDetail) Descriptor deprecated added in v1.2.4

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

Deprecated: Use AuthnDetail.ProtoReflect.Descriptor instead.

func (*AuthnDetail) GetCause added in v1.2.4

func (x *AuthnDetail) GetCause() string

func (*AuthnDetail) GetStatus added in v1.2.4

func (x *AuthnDetail) GetStatus() AuthnDetail_AuthnStatus

func (*AuthnDetail) GetType added in v1.2.4

func (x *AuthnDetail) GetType() AuthnDetail_AuthnType

func (*AuthnDetail) ProtoMessage added in v1.2.4

func (*AuthnDetail) ProtoMessage()

func (*AuthnDetail) ProtoReflect added in v1.2.4

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

func (*AuthnDetail) Reset added in v1.2.4

func (x *AuthnDetail) Reset()

func (*AuthnDetail) String added in v1.2.4

func (x *AuthnDetail) String() string

type AuthnDetail_AuthnStatus added in v1.2.4

type AuthnDetail_AuthnStatus int32
const (
	AuthnDetail_AUTHN_STATUS_UNSPECIFIED AuthnDetail_AuthnStatus = 0
	AuthnDetail_AUTHN_STATUS_SUCCESS     AuthnDetail_AuthnStatus = 1
	AuthnDetail_AUTHN_STATUS_FAIL        AuthnDetail_AuthnStatus = 2
	AuthnDetail_AUTHN_STATUS_ERROR       AuthnDetail_AuthnStatus = 3
)

func (AuthnDetail_AuthnStatus) Descriptor added in v1.2.4

func (AuthnDetail_AuthnStatus) Enum added in v1.2.4

func (AuthnDetail_AuthnStatus) EnumDescriptor deprecated added in v1.2.4

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

Deprecated: Use AuthnDetail_AuthnStatus.Descriptor instead.

func (AuthnDetail_AuthnStatus) Number added in v1.2.4

func (AuthnDetail_AuthnStatus) String added in v1.2.4

func (x AuthnDetail_AuthnStatus) String() string

func (AuthnDetail_AuthnStatus) Type added in v1.2.4

type AuthnDetail_AuthnType added in v1.2.4

type AuthnDetail_AuthnType int32
const (
	AuthnDetail_AUTHN_TYPE_UNSPECIFIED AuthnDetail_AuthnType = 0
	AuthnDetail_AUTHN_TYPE_NONE        AuthnDetail_AuthnType = 1
	AuthnDetail_AUTHN_TYPE_PASSWORD    AuthnDetail_AuthnType = 2
	AuthnDetail_AUTHN_TYPE_SSHKEY      AuthnDetail_AuthnType = 3
	AuthnDetail_AUTHN_TYPE_SSHCERT     AuthnDetail_AuthnType = 4
	AuthnDetail_AUTHN_TYPE_TLSCERT     AuthnDetail_AuthnType = 5
	AuthnDetail_AUTHN_TYPE_PAP         AuthnDetail_AuthnType = 6
	AuthnDetail_AUTHN_TYPE_CHAP        AuthnDetail_AuthnType = 7
)

func (AuthnDetail_AuthnType) Descriptor added in v1.2.4

func (AuthnDetail_AuthnType) Enum added in v1.2.4

func (AuthnDetail_AuthnType) EnumDescriptor deprecated added in v1.2.4

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

Deprecated: Use AuthnDetail_AuthnType.Descriptor instead.

func (AuthnDetail_AuthnType) Number added in v1.2.4

func (AuthnDetail_AuthnType) String added in v1.2.4

func (x AuthnDetail_AuthnType) String() string

func (AuthnDetail_AuthnType) Type added in v1.2.4

type AuthzDetail added in v1.2.4

type AuthzDetail struct {
	Status AuthzDetail_AuthzStatus `protobuf:"varint,1,opt,name=status,proto3,enum=gnsi.acctz.v1.AuthzDetail_AuthzStatus" json:"status,omitempty"`
	Detail string                  `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthzDetail) Descriptor deprecated added in v1.2.4

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

Deprecated: Use AuthzDetail.ProtoReflect.Descriptor instead.

func (*AuthzDetail) GetDetail added in v1.2.4

func (x *AuthzDetail) GetDetail() string

func (*AuthzDetail) GetStatus added in v1.2.4

func (x *AuthzDetail) GetStatus() AuthzDetail_AuthzStatus

func (*AuthzDetail) ProtoMessage added in v1.2.4

func (*AuthzDetail) ProtoMessage()

func (*AuthzDetail) ProtoReflect added in v1.2.4

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

func (*AuthzDetail) Reset added in v1.2.4

func (x *AuthzDetail) Reset()

func (*AuthzDetail) String added in v1.2.4

func (x *AuthzDetail) String() string

type AuthzDetail_AuthzStatus added in v1.2.4

type AuthzDetail_AuthzStatus int32
const (
	AuthzDetail_AUTHZ_STATUS_UNSPECIFIED AuthzDetail_AuthzStatus = 0
	AuthzDetail_AUTHZ_STATUS_PERMIT      AuthzDetail_AuthzStatus = 1
	AuthzDetail_AUTHZ_STATUS_DENY        AuthzDetail_AuthzStatus = 2
	AuthzDetail_AUTHZ_STATUS_ERROR       AuthzDetail_AuthzStatus = 3
)

func (AuthzDetail_AuthzStatus) Descriptor added in v1.2.4

func (AuthzDetail_AuthzStatus) Enum added in v1.2.4

func (AuthzDetail_AuthzStatus) EnumDescriptor deprecated added in v1.2.4

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

Deprecated: Use AuthzDetail_AuthzStatus.Descriptor instead.

func (AuthzDetail_AuthzStatus) Number added in v1.2.4

func (AuthzDetail_AuthzStatus) String added in v1.2.4

func (x AuthzDetail_AuthzStatus) String() string

func (AuthzDetail_AuthzStatus) Type added in v1.2.4

type CommandService

type CommandService struct {
	ServiceType        CommandService_CmdServiceType `` /* 144-byte string literal not displayed */
	Cmd                string                        `protobuf:"bytes,2,opt,name=cmd,proto3" json:"cmd,omitempty"`
	CmdIstruncated     bool                          `protobuf:"varint,4,opt,name=cmd_istruncated,json=cmdIstruncated,proto3" json:"cmd_istruncated,omitempty"`
	CmdArgs            []string                      `protobuf:"bytes,3,rep,name=cmd_args,json=cmdArgs,proto3" json:"cmd_args,omitempty"`
	CmdArgsIstruncated bool                          `protobuf:"varint,5,opt,name=cmd_args_istruncated,json=cmdArgsIstruncated,proto3" json:"cmd_args_istruncated,omitempty"`
	Authz              *AuthzDetail                  `protobuf:"bytes,6,opt,name=authz,proto3" json:"authz,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandService) Descriptor deprecated

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

Deprecated: Use CommandService.ProtoReflect.Descriptor instead.

func (*CommandService) GetAuthz added in v1.2.4

func (x *CommandService) GetAuthz() *AuthzDetail

func (*CommandService) GetCmd

func (x *CommandService) GetCmd() string

func (*CommandService) GetCmdArgs

func (x *CommandService) GetCmdArgs() []string

func (*CommandService) GetCmdArgsIstruncated

func (x *CommandService) GetCmdArgsIstruncated() bool

func (*CommandService) GetCmdIstruncated

func (x *CommandService) GetCmdIstruncated() bool

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
	CommandService_CMD_SERVICE_TYPE_WEBUI       CommandService_CmdServiceType = 3
	CommandService_CMD_SERVICE_TYPE_RESTCONF    CommandService_CmdServiceType = 4
	CommandService_CMD_SERVICE_TYPE_NETCONF     CommandService_CmdServiceType = 5
)

func (CommandService_CmdServiceType) Descriptor

func (CommandService_CmdServiceType) Enum

func (CommandService_CmdServiceType) EnumDescriptor deprecated

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

Deprecated: Use CommandService_CmdServiceType.Descriptor instead.

func (CommandService_CmdServiceType) Number

func (CommandService_CmdServiceType) String

func (CommandService_CmdServiceType) Type

type GrpcService

type GrpcService struct {
	ServiceType        GrpcService_GrpcServiceType `` /* 142-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"`
	PayloadIstruncated bool                        `protobuf:"varint,5,opt,name=payload_istruncated,json=payloadIstruncated,proto3" json:"payload_istruncated,omitempty"`
	Authz              *AuthzDetail                `protobuf:"bytes,6,opt,name=authz,proto3" json:"authz,omitempty"`
	// contains filtered or unexported fields
}

func (*GrpcService) Descriptor deprecated

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

Deprecated: Use GrpcService.ProtoReflect.Descriptor instead.

func (*GrpcService) GetAuthz added in v1.2.4

func (x *GrpcService) GetAuthz() *AuthzDetail

func (*GrpcService) GetPayloadIstruncated

func (x *GrpcService) GetPayloadIstruncated() bool

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
	GrpcService_GRPC_SERVICE_TYPE_P4RT        GrpcService_GrpcServiceType = 5
)

func (GrpcService_GrpcServiceType) Descriptor

func (GrpcService_GrpcServiceType) Enum

func (GrpcService_GrpcServiceType) EnumDescriptor deprecated

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

Deprecated: Use GrpcService_GrpcServiceType.Descriptor instead.

func (GrpcService_GrpcServiceType) Number

func (GrpcService_GrpcServiceType) String

func (GrpcService_GrpcServiceType) Type

type RecordRequest

type RecordRequest struct {
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordRequest) Descriptor deprecated

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

Deprecated: Use RecordRequest.ProtoReflect.Descriptor instead.

func (*RecordRequest) GetTimestamp

func (x *RecordRequest) GetTimestamp() *timestamppb.Timestamp

func (*RecordRequest) ProtoMessage

func (*RecordRequest) ProtoMessage()

func (*RecordRequest) ProtoReflect

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

func (*RecordRequest) Reset

func (x *RecordRequest) Reset()

func (*RecordRequest) String

func (x *RecordRequest) String() string

type RecordResponse

type RecordResponse 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"`
	HistoryIstruncated bool                   `protobuf:"varint,3,opt,name=history_istruncated,json=historyIstruncated,proto3" json:"history_istruncated,omitempty"`
	// Types that are assignable to ServiceRequest:
	//	*RecordResponse_CmdService
	//	*RecordResponse_GrpcService
	ServiceRequest isRecordResponse_ServiceRequest `protobuf_oneof:"service_request"`
	TaskIds        []string                        `protobuf:"bytes,7,rep,name=task_ids,json=taskIds,proto3" json:"task_ids,omitempty"`
	ComponentName  string                          `protobuf:"bytes,8,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
	// contains filtered or unexported fields
}

func (*RecordResponse) Descriptor deprecated

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

Deprecated: Use RecordResponse.ProtoReflect.Descriptor instead.

func (*RecordResponse) GetCmdService

func (x *RecordResponse) GetCmdService() *CommandService

func (*RecordResponse) GetComponentName added in v1.2.5

func (x *RecordResponse) GetComponentName() string

func (*RecordResponse) GetGrpcService

func (x *RecordResponse) GetGrpcService() *GrpcService

func (*RecordResponse) GetHistoryIstruncated

func (x *RecordResponse) GetHistoryIstruncated() bool

func (*RecordResponse) GetServiceRequest

func (m *RecordResponse) GetServiceRequest() isRecordResponse_ServiceRequest

func (*RecordResponse) GetSessionInfo

func (x *RecordResponse) GetSessionInfo() *SessionInfo

func (*RecordResponse) GetTaskIds

func (x *RecordResponse) GetTaskIds() []string

func (*RecordResponse) GetTimestamp

func (x *RecordResponse) GetTimestamp() *timestamppb.Timestamp

func (*RecordResponse) ProtoMessage

func (*RecordResponse) ProtoMessage()

func (*RecordResponse) ProtoReflect

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

func (*RecordResponse) Reset

func (x *RecordResponse) Reset()

func (*RecordResponse) String

func (x *RecordResponse) String() string

type RecordResponse_CmdService

type RecordResponse_CmdService struct {
	CmdService *CommandService `protobuf:"bytes,4,opt,name=cmd_service,json=cmdService,proto3,oneof"`
}

type RecordResponse_GrpcService

type RecordResponse_GrpcService struct {
	GrpcService *GrpcService `protobuf:"bytes,5,opt,name=grpc_service,json=grpcService,proto3,oneof"`
}

type SessionInfo

type SessionInfo struct {
	LocalAddress  string                    `protobuf:"bytes,1,opt,name=local_address,json=localAddress,proto3" json:"local_address,omitempty"`
	LocalPort     uint32                    `protobuf:"varint,2,opt,name=local_port,json=localPort,proto3" json:"local_port,omitempty"`
	RemoteAddress string                    `protobuf:"bytes,3,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"`
	RemotePort    uint32                    `protobuf:"varint,4,opt,name=remote_port,json=remotePort,proto3" json:"remote_port,omitempty"`
	IpProto       uint32                    `protobuf:"varint,5,opt,name=ip_proto,json=ipProto,proto3" json:"ip_proto,omitempty"`
	ChannelId     string                    `protobuf:"bytes,6,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	Tty           string                    `protobuf:"bytes,7,opt,name=tty,proto3" json:"tty,omitempty"`
	Status        SessionInfo_SessionStatus `protobuf:"varint,8,opt,name=status,proto3,enum=gnsi.acctz.v1.SessionInfo_SessionStatus" json:"status,omitempty"`
	User          *UserDetail               `protobuf:"bytes,9,opt,name=user,proto3" json:"user,omitempty"`
	Authn         *AuthnDetail              `protobuf:"bytes,10,opt,name=authn,proto3" json:"authn,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionInfo) Descriptor deprecated

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

Deprecated: Use SessionInfo.ProtoReflect.Descriptor instead.

func (*SessionInfo) GetAuthn added in v1.2.4

func (x *SessionInfo) GetAuthn() *AuthnDetail

func (*SessionInfo) GetChannelId

func (x *SessionInfo) GetChannelId() string

func (*SessionInfo) GetIpProto

func (x *SessionInfo) GetIpProto() uint32

func (*SessionInfo) GetLocalAddress

func (x *SessionInfo) GetLocalAddress() string

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) GetStatus added in v1.2.4

func (x *SessionInfo) GetStatus() SessionInfo_SessionStatus

func (*SessionInfo) GetTty added in v1.2.4

func (x *SessionInfo) GetTty() string

func (*SessionInfo) GetUser added in v1.2.4

func (x *SessionInfo) GetUser() *UserDetail

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

type SessionInfo_SessionStatus added in v1.2.4

type SessionInfo_SessionStatus int32
const (
	SessionInfo_SESSION_STATUS_UNSPECIFIED SessionInfo_SessionStatus = 0
	SessionInfo_SESSION_STATUS_LOGIN       SessionInfo_SessionStatus = 1
	SessionInfo_SESSION_STATUS_LOGOUT      SessionInfo_SessionStatus = 2
	SessionInfo_SESSION_STATUS_ONCE        SessionInfo_SessionStatus = 3
	SessionInfo_SESSION_STATUS_ENABLE      SessionInfo_SessionStatus = 4
	SessionInfo_SESSION_STATUS_IDLE        SessionInfo_SessionStatus = 5
	SessionInfo_SESSION_STATUS_OPERATION   SessionInfo_SessionStatus = 6
)

func (SessionInfo_SessionStatus) Descriptor added in v1.2.4

func (SessionInfo_SessionStatus) Enum added in v1.2.4

func (SessionInfo_SessionStatus) EnumDescriptor deprecated added in v1.2.4

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

Deprecated: Use SessionInfo_SessionStatus.Descriptor instead.

func (SessionInfo_SessionStatus) Number added in v1.2.4

func (SessionInfo_SessionStatus) String added in v1.2.4

func (x SessionInfo_SessionStatus) String() string

func (SessionInfo_SessionStatus) Type added in v1.2.4

type UnimplementedAcctzServer

type UnimplementedAcctzServer struct {
}

UnimplementedAcctzServer must be embedded to have forward compatible implementations.

func (UnimplementedAcctzServer) RecordSubscribe

type UnimplementedAcctzStreamServer added in v1.3.0

type UnimplementedAcctzStreamServer struct {
}

UnimplementedAcctzStreamServer must be embedded to have forward compatible implementations.

func (UnimplementedAcctzStreamServer) RecordSubscribe added in v1.3.0

type UnsafeAcctzServer

type UnsafeAcctzServer interface {
	// contains filtered or unexported methods
}

UnsafeAcctzServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AcctzServer will result in compilation errors.

type UnsafeAcctzStreamServer added in v1.3.0

type UnsafeAcctzStreamServer interface {
	// contains filtered or unexported methods
}

UnsafeAcctzStreamServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AcctzStreamServer will result in compilation errors.

type UserDetail added in v1.2.4

type UserDetail struct {
	Identity     string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	Role         string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	SshPrincipal string `protobuf:"bytes,3,opt,name=ssh_principal,json=sshPrincipal,proto3" json:"ssh_principal,omitempty"`
	// contains filtered or unexported fields
}

func (*UserDetail) Descriptor deprecated added in v1.2.4

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

Deprecated: Use UserDetail.ProtoReflect.Descriptor instead.

func (*UserDetail) GetIdentity added in v1.2.4

func (x *UserDetail) GetIdentity() string

func (*UserDetail) GetRole added in v1.2.5

func (x *UserDetail) GetRole() string

func (*UserDetail) GetSshPrincipal added in v1.2.5

func (x *UserDetail) GetSshPrincipal() string

func (*UserDetail) ProtoMessage added in v1.2.4

func (*UserDetail) ProtoMessage()

func (*UserDetail) ProtoReflect added in v1.2.4

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

func (*UserDetail) Reset added in v1.2.4

func (x *UserDetail) Reset()

func (*UserDetail) String added in v1.2.4

func (x *UserDetail) String() string

Jump to

Keyboard shortcuts

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