Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttestationData ¶
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 ¶
type V1 struct { plugin.Facade nodeattestorv1.NodeAttestorPluginClient }
Click to show internal directories.
Click to hide internal directories.