scenarioserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminPreparedScenario added in v0.1.9

type AdminPreparedScenario struct {
	ID string `json:"id"`
	hfv1.ScenarioSpec
}

type PreparedPrintableScenario added in v1.0.0

type PreparedPrintableScenario struct {
	Id              string              `json:"id"`
	Name            string              `json:"name"`
	Description     string              `json:"description"`
	StepCount       int                 `json:"stepcount"`
	VirtualMachines []map[string]string `json:"virtualmachines"`
	Pauseable       bool                `json:"pauseable"`
	Printable       bool                `json:"printable"`
}

type PreparedScenario

type PreparedScenario struct {
	Id              string              `json:"id"`
	Name            string              `json:"name"`
	Description     string              `json:"description"`
	StepCount       int                 `json:"stepcount"`
	VirtualMachines []map[string]string `json:"virtualmachines"`
	Pauseable       bool                `json:"pauseable"`
}

type PreparedScenarioStep

type PreparedScenarioStep struct {
	Title   string `json:"title"`
	Content string `json:"content"`
}

type ScenarioServer

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

func NewScenarioServer

func NewScenarioServer(authClient *authclient.AuthClient, acClient *accesscode.AccessCodeClient, hfClientset hfClientset.Interface, hfInformerFactory hfInformers.SharedInformerFactory, ctx context.Context) (*ScenarioServer, error)

func (ScenarioServer) AdminGetFunc added in v0.1.9

func (s ScenarioServer) AdminGetFunc(w http.ResponseWriter, r *http.Request)

func (ScenarioServer) AdminPrintFunc added in v1.0.0

func (s ScenarioServer) AdminPrintFunc(w http.ResponseWriter, r *http.Request)

func (ScenarioServer) CreateFunc added in v0.1.9

func (s ScenarioServer) CreateFunc(w http.ResponseWriter, r *http.Request)

func (ScenarioServer) GetScenarioById

func (s ScenarioServer) GetScenarioById(id string) (hfv1.Scenario, error)

func (ScenarioServer) GetScenarioFunc

func (s ScenarioServer) GetScenarioFunc(w http.ResponseWriter, r *http.Request)

func (ScenarioServer) GetScenarioStepFunc

func (s ScenarioServer) GetScenarioStepFunc(w http.ResponseWriter, r *http.Request)

func (ScenarioServer) ListAllFunc added in v1.0.0

func (s ScenarioServer) ListAllFunc(w http.ResponseWriter, r *http.Request)

func (ScenarioServer) ListByCategoryFunc added in v1.0.0

func (s ScenarioServer) ListByCategoryFunc(w http.ResponseWriter, r *http.Request)

func (ScenarioServer) ListCategories added in v1.0.0

func (s ScenarioServer) ListCategories(w http.ResponseWriter, r *http.Request)

func (ScenarioServer) ListFunc added in v0.1.9

func (s ScenarioServer) ListFunc(w http.ResponseWriter, r *http.Request, category string)

func (ScenarioServer) ListScenarioForAccessCodes added in v0.1.9

func (s ScenarioServer) ListScenarioForAccessCodes(w http.ResponseWriter, r *http.Request)

func (ScenarioServer) PrintFunc added in v0.1.9

func (s ScenarioServer) PrintFunc(w http.ResponseWriter, r *http.Request)

func (ScenarioServer) SetupRoutes

func (s ScenarioServer) SetupRoutes(r *mux.Router)

func (ScenarioServer) UpdateFunc added in v0.1.9

func (s ScenarioServer) UpdateFunc(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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