nodeattestor

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationData

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

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

type Repository

type Repository struct {
	NodeAttestor NodeAttestor
}

func (*Repository) Clear

func (repo *Repository) Clear()

func (*Repository) GetNodeAttestor

func (repo *Repository) GetNodeAttestor() NodeAttestor

func (*Repository) SetNodeAttestor

func (repo *Repository) SetNodeAttestor(nodeAttestor NodeAttestor)

type ServerStream

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

func (*V1) Attest

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