routes

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0, Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlusterfsAdmin

type GlusterfsAdmin struct{}

func (*GlusterfsAdmin) Create

func (a *GlusterfsAdmin) Create(ctx context.Context, name, cookie string, nworkers int32, cluster, flavor, key, zoneID int64) (glusterfs *model.Glusterfs, err error)

func (*GlusterfsAdmin) Delete

func (a *GlusterfsAdmin) Delete(ctx context.Context, id int64) (err error)

func (*GlusterfsAdmin) GetState

func (a *GlusterfsAdmin) GetState(ctx context.Context, id int64) (status string, err error)

func (*GlusterfsAdmin) List

func (a *GlusterfsAdmin) List(ctx context.Context, offset, limit int64, order, query string) (total int64, glusterfses []*model.Glusterfs, err error)

func (*GlusterfsAdmin) State

func (a *GlusterfsAdmin) State(ctx context.Context, id int64, status string, nworkers int32) (err error)

func (*GlusterfsAdmin) Update

func (a *GlusterfsAdmin) Update(ctx context.Context, id, heketiKey, flavorID int64, nworkers int32) (glusterfs *model.Glusterfs, err error)

type GlusterfsView

type GlusterfsView struct{}

func (*GlusterfsView) Create

func (v *GlusterfsView) Create(c *macaron.Context, store session.Store)

func (*GlusterfsView) Delete

func (v *GlusterfsView) Delete(c *macaron.Context, store session.Store) (err error)

func (*GlusterfsView) Edit

func (v *GlusterfsView) Edit(c *macaron.Context, store session.Store)

func (*GlusterfsView) List

func (v *GlusterfsView) List(c *macaron.Context, store session.Store)

func (*GlusterfsView) New

func (v *GlusterfsView) New(c *macaron.Context, store session.Store)

func (*GlusterfsView) Patch

func (v *GlusterfsView) Patch(c *macaron.Context, store session.Store)

func (*GlusterfsView) State

func (v *GlusterfsView) State(c *macaron.Context, store session.Store)

type OpenshiftAdmin

type OpenshiftAdmin struct{}

func (*OpenshiftAdmin) Create

func (a *OpenshiftAdmin) Create(ctx context.Context, cluster, domain, cookie, haflag, extIP string, nworkers int32, lflavor, mflavor, wflavor, key, zoneID, subnetID, registryID int64, hostrec, infrtype string) (openshift *model.Openshift, err error)

func (*OpenshiftAdmin) Delete

func (a *OpenshiftAdmin) Delete(ctx context.Context, id int64) (err error)

func (*OpenshiftAdmin) GetState

func (a *OpenshiftAdmin) GetState(ctx context.Context, id int64) (status string, err error)

func (*OpenshiftAdmin) Launch

func (a *OpenshiftAdmin) Launch(ctx context.Context, id int64, hostname, ipaddr string) (instance *model.Instance, err error)

func (*OpenshiftAdmin) List

func (a *OpenshiftAdmin) List(ctx context.Context, offset, limit int64, order, query string) (total int64, openshifts []*model.Openshift, err error)

func (*OpenshiftAdmin) State

func (a *OpenshiftAdmin) State(ctx context.Context, id int64, status string) (err error)

func (*OpenshiftAdmin) Update

func (a *OpenshiftAdmin) Update(ctx context.Context, id, flavorID int64, nworkers int32) (openshift *model.Openshift, err error)

type OpenshiftView

type OpenshiftView struct{}

func (*OpenshiftView) Create

func (v *OpenshiftView) Create(c *macaron.Context, store session.Store)

func (*OpenshiftView) Delete

func (v *OpenshiftView) Delete(c *macaron.Context, store session.Store) (err error)

func (*OpenshiftView) Edit

func (v *OpenshiftView) Edit(c *macaron.Context, store session.Store)

func (*OpenshiftView) Launch

func (v *OpenshiftView) Launch(c *macaron.Context, store session.Store)

func (*OpenshiftView) List

func (v *OpenshiftView) List(c *macaron.Context, store session.Store)

func (*OpenshiftView) New

func (v *OpenshiftView) New(c *macaron.Context, store session.Store)

func (*OpenshiftView) Patch

func (v *OpenshiftView) Patch(c *macaron.Context, store session.Store)

func (*OpenshiftView) State

func (v *OpenshiftView) State(c *macaron.Context, store session.Store)

type RegistryAdmin

type RegistryAdmin struct{}

func (*RegistryAdmin) Create

func (a *RegistryAdmin) Create(ctx context.Context, label, virtType, ocpVersion, registryContent, initramfs, kernel, image, installer, cli string) (registry *model.Registry, err error)

func (*RegistryAdmin) Delete

func (a *RegistryAdmin) Delete(id int64) (err error)

func (*RegistryAdmin) List

func (a *RegistryAdmin) List(offset, limit int64, order, query string) (total int64, registrys []*model.Registry, err error)

func (*RegistryAdmin) Update

func (a *RegistryAdmin) Update(ctx context.Context, id int64, label, virtType, ocpVersion, registryContent, initramfs, kernel, image, installer, cli string) (registry *model.Registry, err error)

type RegistryView

type RegistryView struct{}

func (*RegistryView) Create

func (v *RegistryView) Create(c *macaron.Context, store session.Store)

func (*RegistryView) Delete

func (v *RegistryView) Delete(c *macaron.Context, store session.Store) (err error)

func (*RegistryView) Edit

func (v *RegistryView) Edit(c *macaron.Context, store session.Store)

func (*RegistryView) List

func (v *RegistryView) List(c *macaron.Context, store session.Store)

func (*RegistryView) New

func (v *RegistryView) New(c *macaron.Context, store session.Store)

func (*RegistryView) Patch

func (v *RegistryView) Patch(c *macaron.Context, store session.Store)

Jump to

Keyboard shortcuts

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