Documentation ¶
Index ¶
- Variables
- type Attestation
- func (*Attestation) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation) GetHeader() *Header
- func (x *Attestation) GetSignature() []byte
- func (*Attestation) ProtoMessage()
- func (x *Attestation) ProtoReflect() protoreflect.Message
- func (x *Attestation) Reset()
- func (x *Attestation) String() string
- type AttestationType
- func (AttestationType) Descriptor() protoreflect.EnumDescriptor
- func (x AttestationType) Enum() *AttestationType
- func (AttestationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AttestationType) Number() protoreflect.EnumNumber
- func (x AttestationType) String() string
- func (AttestationType) Type() protoreflect.EnumType
- type Device
- func (*Device) Descriptor() ([]byte, []int)deprecated
- func (x *Device) GetArchitecture() string
- func (x *Device) GetHostname() string
- func (x *Device) GetKernelRelease() string
- func (x *Device) GetKernelVersion() string
- func (x *Device) GetPlatform() string
- func (x *Device) GetSerialNumber() string
- func (x *Device) GetUuid() string
- func (*Device) ProtoMessage()
- func (x *Device) ProtoReflect() protoreflect.Message
- func (x *Device) Reset()
- func (x *Device) String() string
- type Header
- func (*Header) Descriptor() ([]byte, []int)deprecated
- func (x *Header) GetContentDigest() []byte
- func (x *Header) GetKid() string
- func (x *Header) GetTimestamp() int64
- func (x *Header) GetType() AttestationType
- func (x *Header) GetVersion() int64
- func (*Header) ProtoMessage()
- func (x *Header) ProtoReflect() protoreflect.Message
- func (x *Header) Reset()
- func (x *Header) String() string
- type RegisterDeviceRequest
- func (*RegisterDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterDeviceRequest) GetAttestation() *Attestation
- func (x *RegisterDeviceRequest) GetDevice() *Device
- func (*RegisterDeviceRequest) ProtoMessage()
- func (x *RegisterDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterDeviceRequest) Reset()
- func (x *RegisterDeviceRequest) String() string
- type RegisterDeviceResponse
- func (*RegisterDeviceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterDeviceResponse) GetAlreadyExists() bool
- func (x *RegisterDeviceResponse) GetDeviceId() string
- func (*RegisterDeviceResponse) ProtoMessage()
- func (x *RegisterDeviceResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterDeviceResponse) Reset()
- func (x *RegisterDeviceResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AttestationType_name = map[int32]string{ 0: "ATTESTATION_TYPE_UNSPECIFIED", 1: "ATTESTATION_TYPE_DEVICE_REGISTRATION", 2: "ATTESTATION_TYPE_ACCESS_REQUEST", } AttestationType_value = map[string]int32{ "ATTESTATION_TYPE_UNSPECIFIED": 0, "ATTESTATION_TYPE_DEVICE_REGISTRATION": 1, "ATTESTATION_TYPE_ACCESS_REQUEST": 2, } )
Enum value maps for AttestationType.
View Source
var File_commonfate_control_attest_v1alpha1_attest_proto protoreflect.FileDescriptor
View Source
var File_commonfate_control_attest_v1alpha1_attestation_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Attestation ¶
type Attestation struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*Attestation) Descriptor
deprecated
func (*Attestation) Descriptor() ([]byte, []int)
Deprecated: Use Attestation.ProtoReflect.Descriptor instead.
func (*Attestation) GetHeader ¶
func (x *Attestation) GetHeader() *Header
func (*Attestation) GetSignature ¶
func (x *Attestation) GetSignature() []byte
func (*Attestation) ProtoMessage ¶
func (*Attestation) ProtoMessage()
func (*Attestation) ProtoReflect ¶
func (x *Attestation) ProtoReflect() protoreflect.Message
func (*Attestation) Reset ¶
func (x *Attestation) Reset()
func (*Attestation) String ¶
func (x *Attestation) String() string
type AttestationType ¶
type AttestationType int32
const ( AttestationType_ATTESTATION_TYPE_UNSPECIFIED AttestationType = 0 AttestationType_ATTESTATION_TYPE_DEVICE_REGISTRATION AttestationType = 1 AttestationType_ATTESTATION_TYPE_ACCESS_REQUEST AttestationType = 2 )
func (AttestationType) Descriptor ¶
func (AttestationType) Descriptor() protoreflect.EnumDescriptor
func (AttestationType) Enum ¶
func (x AttestationType) Enum() *AttestationType
func (AttestationType) EnumDescriptor
deprecated
func (AttestationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AttestationType.Descriptor instead.
func (AttestationType) Number ¶
func (x AttestationType) Number() protoreflect.EnumNumber
func (AttestationType) String ¶
func (x AttestationType) String() string
func (AttestationType) Type ¶
func (AttestationType) Type() protoreflect.EnumType
type Device ¶
type Device struct { SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"` Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"` Architecture string `protobuf:"bytes,5,opt,name=architecture,proto3" json:"architecture,omitempty"` Hostname string `protobuf:"bytes,6,opt,name=hostname,proto3" json:"hostname,omitempty"` KernelRelease string `protobuf:"bytes,7,opt,name=kernel_release,json=kernelRelease,proto3" json:"kernel_release,omitempty"` KernelVersion string `protobuf:"bytes,8,opt,name=kernel_version,json=kernelVersion,proto3" json:"kernel_version,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) GetArchitecture ¶
func (*Device) GetHostname ¶
func (*Device) GetKernelRelease ¶
func (*Device) GetKernelVersion ¶
func (*Device) GetPlatform ¶
func (*Device) GetSerialNumber ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type Header ¶
type Header struct { // should always be '1' Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // the current timestamp in milliseconds since Unix epoch Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // the type of message being signed Type AttestationType `protobuf:"varint,3,opt,name=type,proto3,enum=commonfate.control.attest.v1alpha1.AttestationType" json:"type,omitempty"` // the SHA256 digest of the message contents ContentDigest []byte `protobuf:"bytes,4,opt,name=content_digest,json=contentDigest,proto3" json:"content_digest,omitempty"` // the ID of the key that signed the message Kid string `protobuf:"bytes,5,opt,name=kid,proto3" json:"kid,omitempty"` // contains filtered or unexported fields }
func (*Header) Descriptor
deprecated
func (*Header) GetContentDigest ¶
func (*Header) GetTimestamp ¶
func (*Header) GetType ¶
func (x *Header) GetType() AttestationType
func (*Header) GetVersion ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type RegisterDeviceRequest ¶
type RegisterDeviceRequest struct { Attestation *Attestation `protobuf:"bytes,1,opt,name=attestation,proto3" json:"attestation,omitempty"` Device *Device `protobuf:"bytes,3,opt,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
func (*RegisterDeviceRequest) Descriptor
deprecated
func (*RegisterDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterDeviceRequest.ProtoReflect.Descriptor instead.
func (*RegisterDeviceRequest) GetAttestation ¶
func (x *RegisterDeviceRequest) GetAttestation() *Attestation
func (*RegisterDeviceRequest) GetDevice ¶
func (x *RegisterDeviceRequest) GetDevice() *Device
func (*RegisterDeviceRequest) ProtoMessage ¶
func (*RegisterDeviceRequest) ProtoMessage()
func (*RegisterDeviceRequest) ProtoReflect ¶
func (x *RegisterDeviceRequest) ProtoReflect() protoreflect.Message
func (*RegisterDeviceRequest) Reset ¶
func (x *RegisterDeviceRequest) Reset()
func (*RegisterDeviceRequest) String ¶
func (x *RegisterDeviceRequest) String() string
type RegisterDeviceResponse ¶
type RegisterDeviceResponse struct { DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // true if the device already exists AlreadyExists bool `protobuf:"varint,2,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"` // contains filtered or unexported fields }
func (*RegisterDeviceResponse) Descriptor
deprecated
func (*RegisterDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterDeviceResponse.ProtoReflect.Descriptor instead.
func (*RegisterDeviceResponse) GetAlreadyExists ¶
func (x *RegisterDeviceResponse) GetAlreadyExists() bool
func (*RegisterDeviceResponse) GetDeviceId ¶
func (x *RegisterDeviceResponse) GetDeviceId() string
func (*RegisterDeviceResponse) ProtoMessage ¶
func (*RegisterDeviceResponse) ProtoMessage()
func (*RegisterDeviceResponse) ProtoReflect ¶
func (x *RegisterDeviceResponse) ProtoReflect() protoreflect.Message
func (*RegisterDeviceResponse) Reset ¶
func (x *RegisterDeviceResponse) Reset()
func (*RegisterDeviceResponse) String ¶
func (x *RegisterDeviceResponse) String() string
Click to show internal directories.
Click to hide internal directories.