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
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 V0 ¶ added in v1.0.0
type V0 struct { plugin.Facade nodeattestorv0.NodeAttestorPluginClient }
type V1 ¶ added in v1.0.0
type V1 struct { plugin.Facade nodeattestorv1.NodeAttestorPluginClient }
Click to show internal directories.
Click to hide internal directories.