mockserver

package
v0.0.0-...-6cdb919 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HarborProject

type HarborProject struct {
	ID           int
	Name         string
	Public       bool
	Members      []*ProjectMember
	Repositories []*ProjectRepository
}

type HarborServer

type HarborServer struct {
	R        *mux.Router
	Projects map[string]*HarborProject
	// contains filtered or unexported fields
}

func NewHarborServer

func NewHarborServer() *HarborServer

func (*HarborServer) CreateProject

func (s *HarborServer) CreateProject(projectName string, metadata map[string]string)

func (*HarborServer) DeleteRepository

func (s *HarborServer) DeleteRepository(w http.ResponseWriter, r *http.Request)

func (*HarborServer) PushImage

func (s *HarborServer) PushImage(projectName string, repository string, tag string)

type ProjectMember

type ProjectMember struct {
	Username string
	Role     int
}

type ProjectRepository

type ProjectRepository struct {
	Name string
	Tags []string
}

Jump to

Keyboard shortcuts

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