attestv1alpha1

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 4 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

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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