Documentation
¶
Index ¶
- Variables
- func RegisterAcctzServer(s *grpc.Server, srv AcctzServer)
- func RegisterAcctzStreamServer(s *grpc.Server, srv AcctzStreamServer)
- type AcctzClient
- type AcctzServer
- type AcctzStreamClient
- type AcctzStreamServer
- type AcctzStream_RecordSubscribeClient
- type AcctzStream_RecordSubscribeServer
- type Acctz_RecordSubscribeClient
- type Acctz_RecordSubscribeServer
- 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 AuthnDetail
- func (*AuthnDetail) Descriptor() ([]byte, []int)deprecated
- func (x *AuthnDetail) GetCause() string
- func (x *AuthnDetail) GetStatus() AuthnDetail_AuthnStatus
- func (x *AuthnDetail) GetType() AuthnDetail_AuthnType
- func (*AuthnDetail) ProtoMessage()
- func (x *AuthnDetail) ProtoReflect() protoreflect.Message
- func (x *AuthnDetail) Reset()
- func (x *AuthnDetail) String() string
- type AuthnDetail_AuthnStatus
- func (AuthnDetail_AuthnStatus) Descriptor() protoreflect.EnumDescriptor
- func (x AuthnDetail_AuthnStatus) Enum() *AuthnDetail_AuthnStatus
- func (AuthnDetail_AuthnStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthnDetail_AuthnStatus) Number() protoreflect.EnumNumber
- func (x AuthnDetail_AuthnStatus) String() string
- func (AuthnDetail_AuthnStatus) Type() protoreflect.EnumType
- type AuthnDetail_AuthnType
- func (AuthnDetail_AuthnType) Descriptor() protoreflect.EnumDescriptor
- func (x AuthnDetail_AuthnType) Enum() *AuthnDetail_AuthnType
- func (AuthnDetail_AuthnType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthnDetail_AuthnType) Number() protoreflect.EnumNumber
- func (x AuthnDetail_AuthnType) String() string
- func (AuthnDetail_AuthnType) Type() protoreflect.EnumType
- type AuthzDetail
- func (*AuthzDetail) Descriptor() ([]byte, []int)deprecated
- func (x *AuthzDetail) GetDetail() string
- func (x *AuthzDetail) GetStatus() AuthzDetail_AuthzStatus
- func (*AuthzDetail) ProtoMessage()
- func (x *AuthzDetail) ProtoReflect() protoreflect.Message
- func (x *AuthzDetail) Reset()
- func (x *AuthzDetail) String() string
- type AuthzDetail_AuthzStatus
- func (AuthzDetail_AuthzStatus) Descriptor() protoreflect.EnumDescriptor
- func (x AuthzDetail_AuthzStatus) Enum() *AuthzDetail_AuthzStatus
- func (AuthzDetail_AuthzStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthzDetail_AuthzStatus) Number() protoreflect.EnumNumber
- func (x AuthzDetail_AuthzStatus) String() string
- func (AuthzDetail_AuthzStatus) Type() protoreflect.EnumType
- type CommandService
- func (*CommandService) Descriptor() ([]byte, []int)deprecated
- func (x *CommandService) GetAuthz() *AuthzDetail
- func (x *CommandService) GetCmd() string
- func (x *CommandService) GetCmdArgs() []string
- func (x *CommandService) GetCmdArgsIstruncated() bool
- func (x *CommandService) GetCmdIstruncated() bool
- 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) GetAuthz() *AuthzDetail
- func (m *GrpcService) GetPayload() isGrpcService_Payload
- func (x *GrpcService) GetPayloadIstruncated() bool
- func (x *GrpcService) GetPayloads() []*anypb.Anydeprecated
- func (x *GrpcService) GetProtoVal() *anypb.Any
- func (x *GrpcService) GetRpcName() string
- func (x *GrpcService) GetServiceType() GrpcService_GrpcServiceType
- func (x *GrpcService) GetStringVal() string
- 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 GrpcService_ProtoVal
- type GrpcService_StringVal
- type RecordRequest
- type RecordResponse
- func (*RecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RecordResponse) GetAuthen() *AuthDetaildeprecated
- func (x *RecordResponse) GetCmdService() *CommandService
- func (x *RecordResponse) GetComponentName() string
- func (x *RecordResponse) GetGrpcService() *GrpcService
- func (x *RecordResponse) GetHistoryIstruncated() bool
- func (m *RecordResponse) GetServiceRequest() isRecordResponse_ServiceRequest
- func (x *RecordResponse) GetSessionInfo() *SessionInfo
- func (x *RecordResponse) GetTaskIds() []string
- func (x *RecordResponse) GetTimestamp() *timestamppb.Timestamp
- func (*RecordResponse) ProtoMessage()
- func (x *RecordResponse) ProtoReflect() protoreflect.Message
- func (x *RecordResponse) Reset()
- func (x *RecordResponse) String() string
- type RecordResponse_CmdService
- type RecordResponse_GrpcService
- type SessionInfo
- func (*SessionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SessionInfo) GetAuthn() *AuthnDetail
- func (x *SessionInfo) GetChannelId() string
- func (x *SessionInfo) GetIpProto() uint32
- func (x *SessionInfo) GetLocalAddress() string
- func (x *SessionInfo) GetLocalPort() uint32
- func (x *SessionInfo) GetRemoteAddress() string
- func (x *SessionInfo) GetRemotePort() uint32
- func (x *SessionInfo) GetStatus() SessionInfo_SessionStatus
- func (x *SessionInfo) GetTty() string
- func (x *SessionInfo) GetUser() *UserDetail
- func (*SessionInfo) ProtoMessage()
- func (x *SessionInfo) ProtoReflect() protoreflect.Message
- func (x *SessionInfo) Reset()
- func (x *SessionInfo) String() string
- type SessionInfo_SessionStatus
- func (SessionInfo_SessionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x SessionInfo_SessionStatus) Enum() *SessionInfo_SessionStatus
- func (SessionInfo_SessionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x SessionInfo_SessionStatus) Number() protoreflect.EnumNumber
- func (x SessionInfo_SessionStatus) String() string
- func (SessionInfo_SessionStatus) Type() protoreflect.EnumType
- type UnimplementedAcctzServer
- type UnimplementedAcctzStreamServer
- type UserDetail
- func (*UserDetail) Descriptor() ([]byte, []int)deprecated
- func (x *UserDetail) GetIdentity() string
- func (x *UserDetail) GetRole() string
- func (x *UserDetail) GetSshPrincipal() string
- func (*UserDetail) ProtoMessage()
- func (x *UserDetail) ProtoReflect() protoreflect.Message
- func (x *UserDetail) Reset()
- func (x *UserDetail) String() string
Constants ¶
This section is empty.
Variables ¶
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.
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 ( 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.
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.
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.
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.
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.
var File_github_com_openconfig_gnsi_acctz_acctz_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAcctzServer ¶
func RegisterAcctzServer(s *grpc.Server, srv AcctzServer)
func RegisterAcctzStreamServer ¶ added in v1.3.0
func RegisterAcctzStreamServer(s *grpc.Server, 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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAcctzClient ¶
func NewAcctzClient(cc grpc.ClientConnInterface) AcctzClient
type AcctzServer ¶
type AcctzServer interface {
RecordSubscribe(Acctz_RecordSubscribeServer) error
}
AcctzServer is the server API for Acctz service.
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://godoc.org/google.golang.org/grpc#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
}
AcctzStreamServer is the server API for AcctzStream service.
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 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.acctz.v1.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 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) Descriptor() protoreflect.EnumDescriptor
func (AuthnDetail_AuthnStatus) Enum ¶ added in v1.2.4
func (x AuthnDetail_AuthnStatus) Enum() *AuthnDetail_AuthnStatus
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 (x AuthnDetail_AuthnStatus) Number() protoreflect.EnumNumber
func (AuthnDetail_AuthnStatus) String ¶ added in v1.2.4
func (x AuthnDetail_AuthnStatus) String() string
func (AuthnDetail_AuthnStatus) Type ¶ added in v1.2.4
func (AuthnDetail_AuthnStatus) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (AuthnDetail_AuthnType) Enum ¶ added in v1.2.4
func (x AuthnDetail_AuthnType) Enum() *AuthnDetail_AuthnType
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 (x AuthnDetail_AuthnType) Number() protoreflect.EnumNumber
func (AuthnDetail_AuthnType) String ¶ added in v1.2.4
func (x AuthnDetail_AuthnType) String() string
func (AuthnDetail_AuthnType) Type ¶ added in v1.2.4
func (AuthnDetail_AuthnType) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (AuthzDetail_AuthzStatus) Enum ¶ added in v1.2.4
func (x AuthzDetail_AuthzStatus) Enum() *AuthzDetail_AuthzStatus
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 (x AuthzDetail_AuthzStatus) Number() protoreflect.EnumNumber
func (AuthzDetail_AuthzStatus) String ¶ added in v1.2.4
func (x AuthzDetail_AuthzStatus) String() string
func (AuthzDetail_AuthzStatus) Type ¶ added in v1.2.4
func (AuthzDetail_AuthzStatus) Type() protoreflect.EnumType
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) 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 `` /* 142-byte string literal not displayed */ RpcName string `protobuf:"bytes,2,opt,name=rpc_name,json=rpcName,proto3" json:"rpc_name,omitempty"` // Deprecated: Marked as deprecated in github.com/openconfig/gnsi/acctz/acctz.proto. 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"` // Types that are assignable to Payload: // *GrpcService_ProtoVal // *GrpcService_StringVal Payload isGrpcService_Payload `protobuf_oneof:"payload"` // 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) GetPayload ¶ added in v1.4.1
func (m *GrpcService) GetPayload() isGrpcService_Payload
func (*GrpcService) GetPayloadIstruncated ¶
func (x *GrpcService) GetPayloadIstruncated() bool
func (*GrpcService) GetPayloads
deprecated
func (x *GrpcService) GetPayloads() []*anypb.Any
Deprecated: Marked as deprecated in github.com/openconfig/gnsi/acctz/acctz.proto.
func (*GrpcService) GetProtoVal ¶ added in v1.4.1
func (x *GrpcService) GetProtoVal() *anypb.Any
func (*GrpcService) GetRpcName ¶
func (x *GrpcService) GetRpcName() string
func (*GrpcService) GetServiceType ¶
func (x *GrpcService) GetServiceType() GrpcService_GrpcServiceType
func (*GrpcService) GetStringVal ¶ added in v1.4.1
func (x *GrpcService) GetStringVal() string
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) 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 GrpcService_ProtoVal ¶ added in v1.4.1
type GrpcService_StringVal ¶ added in v1.4.1
type GrpcService_StringVal struct {
StringVal string `protobuf:"bytes,8,opt,name=string_val,json=stringVal,proto3,oneof"`
}
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"` // Deprecated: Marked as deprecated in github.com/openconfig/gnsi/acctz/acctz.proto. Authen *AuthDetail `protobuf:"bytes,7,opt,name=authen,proto3" json:"authen,omitempty"` ComponentName string `protobuf:"bytes,8,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` TaskIds []string `protobuf:"bytes,32,rep,name=task_ids,json=taskIds,proto3" json:"task_ids,omitempty"` // contains filtered or unexported fields }
func (*RecordResponse) Descriptor
deprecated
func (*RecordResponse) Descriptor() ([]byte, []int)
Deprecated: Use RecordResponse.ProtoReflect.Descriptor instead.
func (*RecordResponse) GetAuthen
deprecated
func (x *RecordResponse) GetAuthen() *AuthDetail
Deprecated: Marked as deprecated in github.com/openconfig/gnsi/acctz/acctz.proto.
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) Descriptor() protoreflect.EnumDescriptor
func (SessionInfo_SessionStatus) Enum ¶ added in v1.2.4
func (x SessionInfo_SessionStatus) Enum() *SessionInfo_SessionStatus
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 (x SessionInfo_SessionStatus) Number() protoreflect.EnumNumber
func (SessionInfo_SessionStatus) String ¶ added in v1.2.4
func (x SessionInfo_SessionStatus) String() string
func (SessionInfo_SessionStatus) Type ¶ added in v1.2.4
func (SessionInfo_SessionStatus) Type() protoreflect.EnumType
type UnimplementedAcctzServer ¶
type UnimplementedAcctzServer struct { }
UnimplementedAcctzServer can be embedded to have forward compatible implementations.
func (*UnimplementedAcctzServer) RecordSubscribe ¶
func (*UnimplementedAcctzServer) RecordSubscribe(Acctz_RecordSubscribeServer) error
type UnimplementedAcctzStreamServer ¶ added in v1.3.0
type UnimplementedAcctzStreamServer struct { }
UnimplementedAcctzStreamServer can be embedded to have forward compatible implementations.
func (*UnimplementedAcctzStreamServer) RecordSubscribe ¶ added in v1.3.0
func (*UnimplementedAcctzStreamServer) RecordSubscribe(*RecordRequest, AcctzStream_RecordSubscribeServer) error
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