registry

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	// Create a registry
	Create(ctx context.Context, request *CreateRegistryRequest) (uint, error)
	// ListAll list all registries
	ListAll(ctx context.Context) (Registries, error)
	// UpdateByID update a registry
	UpdateByID(ctx context.Context, id uint, request *UpdateRegistryRequest) error
	// DeleteByID delete a registry by id
	DeleteByID(ctx context.Context, id uint) error
	GetByID(ctx context.Context, id uint) (*Registry, error)
	GetKinds(ctx context.Context) []string
}

func NewController

func NewController(param *param.Param) Controller

type CreateRegistryRequest

type CreateRegistryRequest struct {
	Name                  string `json:"name"`
	Server                string `json:"server"`
	Token                 string `json:"token"`
	InsecureSkipTLSVerify bool   `json:"insecureSkipTLSVerify"`
	Path                  string `json:"path"`
	Kind                  string `json:"kind"`
}

type Registries

type Registries []*Registry

type Registry

type Registry struct {
	ID                    uint      `json:"id"`
	Name                  string    `json:"name"`
	Server                string    `json:"server"`
	Token                 string    `json:"token"`
	InsecureSkipTLSVerify bool      `json:"insecureSkipTLSVerify"`
	Kind                  string    `json:"kind"`
	Path                  string    `json:"path"`
	CreatedAt             time.Time `json:"createdAt"`
	UpdatedAt             time.Time `json:"updatedAt"`
}

type UpdateRegistryRequest

type UpdateRegistryRequest struct {
	Name                  string `json:"name"`
	Server                string `json:"server"`
	Token                 string `json:"token"`
	InsecureSkipTLSVerify *bool  `json:"insecureSkipTLSVerify"`
	Path                  string `json:"path"`
	Kind                  string `json:"kind"`
}

Jump to

Keyboard shortcuts

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