guard

package
v0.0.205 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 13 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, handler metrics.Handler) (_ Guard, err error)

NewGuard creates a new guard.

func NewGuardInjectedBackend added in v0.0.194

func NewGuardInjectedBackend(ctx context.Context, cfg config.AgentConfig, handler metrics.Handler, rpcURLs map[uint32]string) (_ Guard, err error)

NewGuardInjectedBackend creates a new guard with an injected backend, rather than following the omnirpc URL format.

func (Guard) Start

func (g Guard) Start(ctx 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.
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