nodeattestor

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationData added in v1.0.0

type AttestationData struct {
	Type    string
	Payload []byte
}

AttestationData represents the attestation type and payload that is sent to the server.

type NodeAttestor

type NodeAttestor interface {
	catalog.PluginInfo

	// Attest attests the agent with the server using the provided server
	// stream. Errors produced by the ServerStream are returned from this
	// function unchanged.
	Attest(ctx context.Context, serverStream ServerStream) error
}

NodeAttestor attests the agent with the server

func JoinToken added in v1.0.0

func JoinToken(log logrus.FieldLogger, token string) NodeAttestor

type Repository added in v1.0.0

type Repository struct {
	NodeAttestor NodeAttestor
}

func (*Repository) Clear added in v1.0.0

func (repo *Repository) Clear()

func (*Repository) GetNodeAttestor added in v1.0.0

func (repo *Repository) GetNodeAttestor() NodeAttestor

func (*Repository) SetNodeAttestor added in v1.0.0

func (repo *Repository) SetNodeAttestor(nodeAttestor NodeAttestor)

type ServerStream added in v1.0.0

type ServerStream interface {
	SendAttestationData(ctx context.Context, attestationData AttestationData) ([]byte, error)
	SendChallengeResponse(ctx context.Context, response []byte) ([]byte, error)
}

ServerStream is used by the NodeAttestor to send the attestation data and challenge responses to the server.

type V1 added in v1.0.0

func (*V1) Attest added in v1.0.0

func (v1 *V1) Attest(ctx context.Context, serverStream ServerStream) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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