attestv1alpha1

package
v1.54.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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

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) Enum

func (x AttestationType) Enum() *AttestationType

func (AttestationType) EnumDescriptor deprecated

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

Deprecated: Use AttestationType.Descriptor instead.

func (AttestationType) Number

func (AttestationType) String

func (x AttestationType) String() string

func (AttestationType) Type

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

Cause function returns cause value.

func (AttestationValidationError) Error added in v1.32.1

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

Field function returns field value.

func (AttestationValidationError) Key added in v1.32.1

Key function returns key value.

func (AttestationValidationError) Reason added in v1.32.1

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) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetArchitecture

func (x *Device) GetArchitecture() string

func (*Device) GetHostname

func (x *Device) GetHostname() string

func (*Device) GetKernelRelease

func (x *Device) GetKernelRelease() string

func (*Device) GetKernelVersion

func (x *Device) GetKernelVersion() string

func (*Device) GetPlatform

func (x *Device) GetPlatform() string

func (*Device) GetSerialNumber

func (x *Device) GetSerialNumber() string

func (*Device) GetUuid

func (x *Device) GetUuid() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

func (*Device) Validate added in v1.32.1

func (m *Device) Validate() error

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

func (m *Device) ValidateAll() error

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetContentDigest

func (x *Header) GetContentDigest() []byte

func (*Header) GetKid

func (x *Header) GetKid() string

func (*Header) GetTimestamp

func (x *Header) GetTimestamp() int64

func (*Header) GetType

func (x *Header) GetType() AttestationType

func (*Header) GetVersion

func (x *Header) GetVersion() int64

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

func (*Header) Validate added in v1.32.1

func (m *Header) Validate() error

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

func (m *Header) ValidateAll() error

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

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

Cause function returns cause value.

func (RegisterDeviceRequestValidationError) Error added in v1.32.1

Error satisfies the builtin error interface

func (RegisterDeviceRequestValidationError) ErrorName added in v1.32.1

ErrorName returns error name.

func (RegisterDeviceRequestValidationError) Field added in v1.32.1

Field function returns field value.

func (RegisterDeviceRequestValidationError) Key added in v1.32.1

Key function returns key value.

func (RegisterDeviceRequestValidationError) Reason added in v1.32.1

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

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

Cause function returns cause value.

func (RegisterDeviceResponseValidationError) Error added in v1.32.1

Error satisfies the builtin error interface

func (RegisterDeviceResponseValidationError) ErrorName added in v1.32.1

ErrorName returns error name.

func (RegisterDeviceResponseValidationError) Field added in v1.32.1

Field function returns field value.

func (RegisterDeviceResponseValidationError) Key added in v1.32.1

Key function returns key value.

func (RegisterDeviceResponseValidationError) Reason added in v1.32.1

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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