sharing

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func (*Server) Addr

func (s *Server) Addr() net.Addr

func (*Server) GracefulStop

func (s *Server) GracefulStop()

func (*Server) Wait

func (s *Server) Wait() error

type SingleArchive

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

func NewSingleArchive

func NewSingleArchive(
	arw archive.ReadWriter,
	secretsStore *josesecrets.Keyring,
) *SingleArchive

func (*SingleArchive) GenerateNewCredentialsForClient

func (m *SingleArchive) GenerateNewCredentialsForClient(name string) error

func (*SingleArchive) GetRootCertificate

func (m *SingleArchive) GetRootCertificate() *x509.Certificate

func (*SingleArchive) Init

func (m *SingleArchive) Init() error

func (*SingleArchive) RegisterNewClient

func (m *SingleArchive) RegisterNewClient(name string) (*tls.Certificate, error)

func (*SingleArchive) RemoveClient

func (m *SingleArchive) RemoveClient(name string) error

func (*SingleArchive) Serve

func (m *SingleArchive) Serve(
	currentArchiveName string,
	apiGrpc bool,
	apiInsecureREST bool,
	grpcHost string,
	grpcPort string,
) (*Server, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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