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
- func (m *Attestation) Validate() error
- func (m *Attestation) ValidateAll() error
- type AttestationMultiError
- 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 AttestationValidationError
- func (e AttestationValidationError) Cause() error
- func (e AttestationValidationError) Error() string
- func (e AttestationValidationError) ErrorName() string
- func (e AttestationValidationError) Field() string
- func (e AttestationValidationError) Key() bool
- func (e AttestationValidationError) Reason() string
- 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
- func (m *Device) Validate() error
- func (m *Device) ValidateAll() error
- type DeviceMultiError
- type DeviceValidationError
- 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
- func (m *Header) Validate() error
- func (m *Header) ValidateAll() error
- type HeaderMultiError
- type HeaderValidationError
- 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
- func (m *RegisterDeviceRequest) Validate() error
- func (m *RegisterDeviceRequest) ValidateAll() error
- type RegisterDeviceRequestMultiError
- type RegisterDeviceRequestValidationError
- func (e RegisterDeviceRequestValidationError) Cause() error
- func (e RegisterDeviceRequestValidationError) Error() string
- func (e RegisterDeviceRequestValidationError) ErrorName() string
- func (e RegisterDeviceRequestValidationError) Field() string
- func (e RegisterDeviceRequestValidationError) Key() bool
- func (e RegisterDeviceRequestValidationError) Reason() 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
- func (m *RegisterDeviceResponse) Validate() error
- func (m *RegisterDeviceResponse) ValidateAll() error
- type RegisterDeviceResponseMultiError
- type RegisterDeviceResponseValidationError
- func (e RegisterDeviceResponseValidationError) Cause() error
- func (e RegisterDeviceResponseValidationError) Error() string
- func (e RegisterDeviceResponseValidationError) ErrorName() string
- func (e RegisterDeviceResponseValidationError) Field() string
- func (e RegisterDeviceResponseValidationError) Key() bool
- func (e RegisterDeviceResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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.
var File_commonfate_control_attest_v1alpha1_attest_proto protoreflect.FileDescriptor
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
func (*Attestation) Validate ¶ added in v1.32.1
func (m *Attestation) Validate() error
Validate checks the field values on Attestation with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Attestation) ValidateAll ¶ added in v1.32.1
func (m *Attestation) ValidateAll() error
ValidateAll checks the field values on Attestation with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AttestationMultiError, or nil if none found.
type AttestationMultiError ¶ added in v1.32.1
type AttestationMultiError []error
AttestationMultiError is an error wrapping multiple validation errors returned by Attestation.ValidateAll() if the designated constraints aren't met.
func (AttestationMultiError) AllErrors ¶ added in v1.32.1
func (m AttestationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AttestationMultiError) Error ¶ added in v1.32.1
func (m AttestationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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 AttestationValidationError ¶ added in v1.32.1
type AttestationValidationError struct {
// contains filtered or unexported fields
}
AttestationValidationError is the validation error returned by Attestation.Validate if the designated constraints aren't met.
func (AttestationValidationError) Cause ¶ added in v1.32.1
func (e AttestationValidationError) Cause() error
Cause function returns cause value.
func (AttestationValidationError) Error ¶ added in v1.32.1
func (e AttestationValidationError) Error() string
Error satisfies the builtin error interface
func (AttestationValidationError) ErrorName ¶ added in v1.32.1
func (e AttestationValidationError) ErrorName() string
ErrorName returns error name.
func (AttestationValidationError) Field ¶ added in v1.32.1
func (e AttestationValidationError) Field() string
Field function returns field value.
func (AttestationValidationError) Key ¶ added in v1.32.1
func (e AttestationValidationError) Key() bool
Key function returns key value.
func (AttestationValidationError) Reason ¶ added in v1.32.1
func (e AttestationValidationError) Reason() string
Reason function returns reason value.
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
func (*Device) Validate ¶ added in v1.32.1
Validate checks the field values on Device with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Device) ValidateAll ¶ added in v1.32.1
ValidateAll checks the field values on Device with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeviceMultiError, or nil if none found.
type DeviceMultiError ¶ added in v1.32.1
type DeviceMultiError []error
DeviceMultiError is an error wrapping multiple validation errors returned by Device.ValidateAll() if the designated constraints aren't met.
func (DeviceMultiError) AllErrors ¶ added in v1.32.1
func (m DeviceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeviceMultiError) Error ¶ added in v1.32.1
func (m DeviceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeviceValidationError ¶ added in v1.32.1
type DeviceValidationError struct {
// contains filtered or unexported fields
}
DeviceValidationError is the validation error returned by Device.Validate if the designated constraints aren't met.
func (DeviceValidationError) Cause ¶ added in v1.32.1
func (e DeviceValidationError) Cause() error
Cause function returns cause value.
func (DeviceValidationError) Error ¶ added in v1.32.1
func (e DeviceValidationError) Error() string
Error satisfies the builtin error interface
func (DeviceValidationError) ErrorName ¶ added in v1.32.1
func (e DeviceValidationError) ErrorName() string
ErrorName returns error name.
func (DeviceValidationError) Field ¶ added in v1.32.1
func (e DeviceValidationError) Field() string
Field function returns field value.
func (DeviceValidationError) Key ¶ added in v1.32.1
func (e DeviceValidationError) Key() bool
Key function returns key value.
func (DeviceValidationError) Reason ¶ added in v1.32.1
func (e DeviceValidationError) Reason() string
Reason function returns reason value.
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
func (*Header) Validate ¶ added in v1.32.1
Validate checks the field values on Header with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Header) ValidateAll ¶ added in v1.32.1
ValidateAll checks the field values on Header with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HeaderMultiError, or nil if none found.
type HeaderMultiError ¶ added in v1.32.1
type HeaderMultiError []error
HeaderMultiError is an error wrapping multiple validation errors returned by Header.ValidateAll() if the designated constraints aren't met.
func (HeaderMultiError) AllErrors ¶ added in v1.32.1
func (m HeaderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HeaderMultiError) Error ¶ added in v1.32.1
func (m HeaderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HeaderValidationError ¶ added in v1.32.1
type HeaderValidationError struct {
// contains filtered or unexported fields
}
HeaderValidationError is the validation error returned by Header.Validate if the designated constraints aren't met.
func (HeaderValidationError) Cause ¶ added in v1.32.1
func (e HeaderValidationError) Cause() error
Cause function returns cause value.
func (HeaderValidationError) Error ¶ added in v1.32.1
func (e HeaderValidationError) Error() string
Error satisfies the builtin error interface
func (HeaderValidationError) ErrorName ¶ added in v1.32.1
func (e HeaderValidationError) ErrorName() string
ErrorName returns error name.
func (HeaderValidationError) Field ¶ added in v1.32.1
func (e HeaderValidationError) Field() string
Field function returns field value.
func (HeaderValidationError) Key ¶ added in v1.32.1
func (e HeaderValidationError) Key() bool
Key function returns key value.
func (HeaderValidationError) Reason ¶ added in v1.32.1
func (e HeaderValidationError) Reason() string
Reason function returns reason value.
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
func (*RegisterDeviceRequest) Validate ¶ added in v1.32.1
func (m *RegisterDeviceRequest) Validate() error
Validate checks the field values on RegisterDeviceRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterDeviceRequest) ValidateAll ¶ added in v1.32.1
func (m *RegisterDeviceRequest) ValidateAll() error
ValidateAll checks the field values on RegisterDeviceRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterDeviceRequestMultiError, or nil if none found.
type RegisterDeviceRequestMultiError ¶ added in v1.32.1
type RegisterDeviceRequestMultiError []error
RegisterDeviceRequestMultiError is an error wrapping multiple validation errors returned by RegisterDeviceRequest.ValidateAll() if the designated constraints aren't met.
func (RegisterDeviceRequestMultiError) AllErrors ¶ added in v1.32.1
func (m RegisterDeviceRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterDeviceRequestMultiError) Error ¶ added in v1.32.1
func (m RegisterDeviceRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterDeviceRequestValidationError ¶ added in v1.32.1
type RegisterDeviceRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterDeviceRequestValidationError is the validation error returned by RegisterDeviceRequest.Validate if the designated constraints aren't met.
func (RegisterDeviceRequestValidationError) Cause ¶ added in v1.32.1
func (e RegisterDeviceRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterDeviceRequestValidationError) Error ¶ added in v1.32.1
func (e RegisterDeviceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterDeviceRequestValidationError) ErrorName ¶ added in v1.32.1
func (e RegisterDeviceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterDeviceRequestValidationError) Field ¶ added in v1.32.1
func (e RegisterDeviceRequestValidationError) Field() string
Field function returns field value.
func (RegisterDeviceRequestValidationError) Key ¶ added in v1.32.1
func (e RegisterDeviceRequestValidationError) Key() bool
Key function returns key value.
func (RegisterDeviceRequestValidationError) Reason ¶ added in v1.32.1
func (e RegisterDeviceRequestValidationError) Reason() string
Reason function returns reason value.
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
func (*RegisterDeviceResponse) Validate ¶ added in v1.32.1
func (m *RegisterDeviceResponse) Validate() error
Validate checks the field values on RegisterDeviceResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterDeviceResponse) ValidateAll ¶ added in v1.32.1
func (m *RegisterDeviceResponse) ValidateAll() error
ValidateAll checks the field values on RegisterDeviceResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterDeviceResponseMultiError, or nil if none found.
type RegisterDeviceResponseMultiError ¶ added in v1.32.1
type RegisterDeviceResponseMultiError []error
RegisterDeviceResponseMultiError is an error wrapping multiple validation errors returned by RegisterDeviceResponse.ValidateAll() if the designated constraints aren't met.
func (RegisterDeviceResponseMultiError) AllErrors ¶ added in v1.32.1
func (m RegisterDeviceResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterDeviceResponseMultiError) Error ¶ added in v1.32.1
func (m RegisterDeviceResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterDeviceResponseValidationError ¶ added in v1.32.1
type RegisterDeviceResponseValidationError struct {
// contains filtered or unexported fields
}
RegisterDeviceResponseValidationError is the validation error returned by RegisterDeviceResponse.Validate if the designated constraints aren't met.
func (RegisterDeviceResponseValidationError) Cause ¶ added in v1.32.1
func (e RegisterDeviceResponseValidationError) Cause() error
Cause function returns cause value.
func (RegisterDeviceResponseValidationError) Error ¶ added in v1.32.1
func (e RegisterDeviceResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterDeviceResponseValidationError) ErrorName ¶ added in v1.32.1
func (e RegisterDeviceResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterDeviceResponseValidationError) Field ¶ added in v1.32.1
func (e RegisterDeviceResponseValidationError) Field() string
Field function returns field value.
func (RegisterDeviceResponseValidationError) Key ¶ added in v1.32.1
func (e RegisterDeviceResponseValidationError) Key() bool
Key function returns key value.
func (RegisterDeviceResponseValidationError) Reason ¶ added in v1.32.1
func (e RegisterDeviceResponseValidationError) Reason() string
Reason function returns reason value.