guard

package
v0.0.234 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package guard signs attestations and posts to attestation collector and destination.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Guard

type Guard struct {
	// contains filtered or unexported fields
}

Guard scans origins for latest state and submits snapshots to the Summit.

func NewGuard

func NewGuard(ctx context.Context, cfg config.AgentConfig, omniRPCClient omnirpcClient.RPCClient, txDB db.GuardDB, handler metrics.Handler) (_ Guard, err error)

NewGuard creates a new guard.

func (Guard) Start

func (g Guard) Start(parentCtx context.Context) error

Start starts the guard.

Directories

Path Synopsis
Package api contains the API for the guard.
Package api contains the API for the guard.
Package cmd provides the command line interface for the guard.
Package cmd provides the command line interface for the guard.
db
Package db defines the interface for the database.
Package db defines the interface for the database.
sql/base
Package base contains the base sql implementation
Package base contains the base sql implementation
sql/mysql
Package mysql contains a mysql db
Package mysql contains a mysql db
sql/sqlite
Package sqlite implements the sqlite package
Package sqlite implements the sqlite package
Package main provides the main function for the Guard.
Package main provides the main function for the Guard.
Package metadata provides metadata for Guard.
Package metadata provides metadata for Guard.

Jump to

Keyboard shortcuts

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