apis

package
v0.0.0-...-a297e19 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderTimestamp = "X-Timestamp"
	HeaderSignature = "X-Signature"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeGuard

type FakeGuard struct{}

func (*FakeGuard) GetAuthorizedKeys

func (g *FakeGuard) GetAuthorizedKeys(ctx context.Context) ([]string, error)

func (*FakeGuard) GetCA

func (g *FakeGuard) GetCA(ctx context.Context) (string, error)

func (*FakeGuard) GetKRL

func (g *FakeGuard) GetKRL(ctx context.Context) (string, error)

func (*FakeGuard) GetPrincipals

func (g *FakeGuard) GetPrincipals(ctx context.Context) ([]*dto.Principals, error)

type Guard

type Guard interface {
	GetCA(ctx context.Context) (string, error)
	GetPrincipals(ctx context.Context) ([]*dto.Principals, error)
	GetKRL(ctx context.Context) (string, error)
	GetAuthorizedKeys(ctx context.Context) ([]string, error)
}

type HTTPGuard

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

func NewHTTPGuard

func NewHTTPGuard(address string, nodeID, nodeSecret string) (*HTTPGuard, error)

func (*HTTPGuard) GetAuthorizedKeys

func (g *HTTPGuard) GetAuthorizedKeys(ctx context.Context) ([]string, error)

func (*HTTPGuard) GetCA

func (g *HTTPGuard) GetCA(ctx context.Context) (string, error)

func (*HTTPGuard) GetKRL

func (g *HTTPGuard) GetKRL(ctx context.Context) (string, error)

func (*HTTPGuard) GetPrincipals

func (g *HTTPGuard) GetPrincipals(ctx context.Context) ([]*dto.Principals, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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