server

package
v0.1.6-0...-089b30c Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug          bool
	Port           uint
	IPFSHost       string
	IPFSGateway    string
	CIDResolvers   []string
	CIDStorePath   string
	TLSCertPath    string
	TLSKeyPath     string
	IPFSClusterApi string
}

Config is server config

type InfoResponse

type InfoResponse struct {
	Info        string   `json:"what"`
	Project     string   `json:"project"`
	Gateway     string   `json:"gateway"`
	Handles     []string `json:"handles"`
	Problematic []string `json:"problematic"`
}

InfoResponse is response for manifest info response

type Server

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

Server is server structure

func NewServer

func NewServer(config *Config) *Server

NewServer returns a new server instance

func (*Server) Debugf

func (s *Server) Debugf(str string, args ...interface{})

Debugf prints debug log

func (*Server) Start

func (s *Server) Start() error

Start runs the registry server

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server

Directories

Path Synopsis
Package registry implements a docker V2 registry and the OCI distribution specification.
Package registry implements a docker V2 registry and the OCI distribution specification.

Jump to

Keyboard shortcuts

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