web

package
v0.0.0-...-1c7d887 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationKeyDescription = v1beta1.GroupName + "/description"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func (*App) ListTemplates

func (app *App) ListTemplates(c *gin.Context)

ListTemplates responds will all the template resources that exist in a namespace.

func (*App) Router

func (app *App) Router(r *gin.Engine) http.Handler

type Client

type Client interface {
	client.Writer
	client.Reader
	Scheme() *runtime.Scheme
	RESTMapper() meta.RESTMapper
}

type Fake

type Fake struct {
	GetFunc         func(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error
	ListFunc        func(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
	CreateFunc      func(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
	DeleteFunc      func(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
	UpdateFunc      func(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
	PatchFunc       func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
	DeleteAllOfFunc func(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
	// contains filtered or unexported fields
}

func (Fake) Create

func (f Fake) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

func (Fake) Delete

func (f Fake) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

func (Fake) DeleteAllOf

func (f Fake) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

func (Fake) Get

func (f Fake) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error

func (Fake) List

func (f Fake) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

func (Fake) Patch

func (f Fake) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

func (Fake) RESTMapper

func (f Fake) RESTMapper() meta.RESTMapper

func (Fake) Scheme

func (f Fake) Scheme() *runtime.Scheme

func (Fake) Update

func (f Fake) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

type ListTemplateResponse

type ListTemplateResponse struct {
	Templates []Template `json:"templates"`
}

type Template

type Template struct {
	Name        string           `json:"name"`
	Description string           `json:"description"`
	Options     []TemplateOption `json:"options"`
	Image       string           `json:"image"`
}

type TemplateOption

type TemplateOption struct {
	// Unique Name of the template option
	Name        string `json:"name"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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