registry

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Readonly

func Readonly(w http.ResponseWriter, r *http.Request)

func RemoveLayers

func RemoveLayers(w http.ResponseWriter, r *http.Request)

func RemoveManifests

func RemoveManifests(w http.ResponseWriter, r *http.Request)

Types

type RemoveLayersRequest

type RemoveLayersRequest struct {
	MasterIP      string `json:"masterID"`
	RegistryAppID string `json:"registryAppID"`
}

type RemoveManifestsRequest

type RemoveManifestsRequest struct {
	RegistryURL string   `json:"registryURL"`
	Images      []string `json:"images"`
}

type RemoveManifestsResponse

type RemoveManifestsResponse struct {
	Succeed []string          `json:"succeed"`
	Failed  map[string]string `json:"failed"`
}

type State

type State struct {
	Running   bool      `json:"running"`
	StartTime time.Time `json:"startTime"`
	EndTime   time.Time `json:"endTime"`
	LastError string    `json:"lastError"`
}

type StateReply

type StateReply struct {
	Success bool   `json:"success"`
	Data    *State `json:"data"`
	Err     *struct {
		Code string      `json:"code"`
		Msg  string      `json:"msg"`
		Ctx  interface{} `json:"ctx"`
	} `json:"err"`
}

Jump to

Keyboard shortcuts

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