resthandler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyConfigurator

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

PolicyConfigurator updates witness policy in config store.

func New

func New(store policyStore) *PolicyConfigurator

New returns a new PolicyConfigurator.

func (*PolicyConfigurator) Handler

Handler returns the HTTP REST handle for the PolicyConfigurator service.

func (*PolicyConfigurator) Method

func (pc *PolicyConfigurator) Method() string

Method returns the HTTP REST method for the configure policy service.

func (*PolicyConfigurator) Path

func (pc *PolicyConfigurator) Path() string

Path returns the HTTP REST endpoint for the PolicyConfigurator service.

type PolicyRetriever

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

PolicyRetriever retrieves the current witness policy.

func NewRetriever

func NewRetriever(store policyStore) *PolicyRetriever

NewRetriever returns a new PolicyRetriever.

func (*PolicyRetriever) Handler

Handler returns the HTTP REST handle for the PolicyRetriever service.

func (*PolicyRetriever) Method

func (pc *PolicyRetriever) Method() string

Method returns the HTTP REST method for the policy retriever.

func (*PolicyRetriever) Path

func (pc *PolicyRetriever) Path() string

Path returns the HTTP REST endpoint for the policy retriever.

Jump to

Keyboard shortcuts

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