api

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.2 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes bearerAuthContextKey = "BearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(router EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

func RegisterHandlersWithBaseURL

func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)

RegisterHandlersWithBaseURL registers handlers and prepends BaseURL to the paths so the API can be served under a prefix.

func RegisterHandlersWithOptions

func RegisterHandlersWithOptions(router EchoRouter, si ServerInterface, options RegisterHandlersOptions)

RegisterHandlersWithOptions registers handlers using the supplied options, including any per-operation middleware.

Types

type ApiAddUserRoleJSONRequestBody

type ApiAddUserRoleJSONRequestBody = RoleAssignmentRequest

ApiAddUserRoleJSONRequestBody defines body for ApiAddUserRole for application/json ContentType.

type ApiAuthLoginJSONRequestBody

type ApiAuthLoginJSONRequestBody = AuthLoginRequest

ApiAuthLoginJSONRequestBody defines body for ApiAuthLogin for application/json ContentType.

type ApiAuthzCheckJSONRequestBody

type ApiAuthzCheckJSONRequestBody = AuthzCheckRequest

ApiAuthzCheckJSONRequestBody defines body for ApiAuthzCheck for application/json ContentType.

type ApiChangeUserPasswordJSONRequestBody

type ApiChangeUserPasswordJSONRequestBody = PasswordChangeRequest

ApiChangeUserPasswordJSONRequestBody defines body for ApiChangeUserPassword for application/json ContentType.

type ApiCreateGatewayJSONRequestBody

type ApiCreateGatewayJSONRequestBody = Gateway

ApiCreateGatewayJSONRequestBody defines body for ApiCreateGateway for application/json ContentType.

type ApiCreateImageJSONRequestBody

type ApiCreateImageJSONRequestBody = Image

ApiCreateImageJSONRequestBody defines body for ApiCreateImage for application/json ContentType.

type ApiCreateLoadBalancerJSONRequestBody

type ApiCreateLoadBalancerJSONRequestBody = ApplicationLoadBalancer

ApiCreateLoadBalancerJSONRequestBody defines body for ApiCreateLoadBalancer for application/json ContentType.

type ApiCreateNetworkJSONRequestBody

type ApiCreateNetworkJSONRequestBody = VirtualNetwork

ApiCreateNetworkJSONRequestBody defines body for ApiCreateNetwork for application/json ContentType.

type ApiCreateNetworkLoadBalancerJSONRequestBody

type ApiCreateNetworkLoadBalancerJSONRequestBody = NetworkLoadBalancer

ApiCreateNetworkLoadBalancerJSONRequestBody defines body for ApiCreateNetworkLoadBalancer for application/json ContentType.

type ApiCreateServerJSONRequestBody

type ApiCreateServerJSONRequestBody = Server

ApiCreateServerJSONRequestBody defines body for ApiCreateServer for application/json ContentType.

type ApiCreateUserApiKeyJSONRequestBody

type ApiCreateUserApiKeyJSONRequestBody = ApiKeyCreateRequest

ApiCreateUserApiKeyJSONRequestBody defines body for ApiCreateUserApiKey for application/json ContentType.

type ApiCreateUserJSONRequestBody

type ApiCreateUserJSONRequestBody = User

ApiCreateUserJSONRequestBody defines body for ApiCreateUser for application/json ContentType.

type ApiCreateVolumeJSONRequestBody

type ApiCreateVolumeJSONRequestBody = Volume

ApiCreateVolumeJSONRequestBody defines body for ApiCreateVolume for application/json ContentType.

type ApiCreateVpnGatewayJSONRequestBody

type ApiCreateVpnGatewayJSONRequestBody = VpnGateway

ApiCreateVpnGatewayJSONRequestBody defines body for ApiCreateVpnGateway for application/json ContentType.

type ApiKey

type ApiKey struct {
	ApiVersion string        `json:"apiVersion"`
	Kind       string        `json:"kind"`
	Metadata   Metadata      `json:"metadata"`
	Spec       ApiKeySpec    `json:"spec"`
	Status     *ApiKeyStatus `json:"status,omitempty"`
}

ApiKey defines model for ApiKey.

type ApiKeyCreateRequest

type ApiKeyCreateRequest struct {
	Comment   *string    `json:"comment,omitempty"`
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`

	// SessionType Session scope for the API key. Login sessions may be revoked automatically after inactivity; generated keys remain persistent until explicitly deleted.
	SessionType *string `json:"sessionType,omitempty"`
}

ApiKeyCreateRequest defines model for ApiKeyCreateRequest.

type ApiKeySpec

type ApiKeySpec struct {
	Comment   *string    `json:"comment,omitempty"`
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`
	IssuedAt  *time.Time `json:"issuedAt,omitempty"`
	Revoked   *bool      `json:"revoked,omitempty"`

	// SessionType Session scope for the API key. login marks a bearer token created by POST /auth/login; other values are treated as persistent user-generated keys.
	SessionType *string `json:"sessionType,omitempty"`
	TokenPrefix *string `json:"tokenPrefix,omitempty"`
}

ApiKeySpec defines model for ApiKeySpec.

type ApiKeyStatus

type ApiKeyStatus struct {
	LastUsedAt *time.Time `json:"lastUsedAt,omitempty"`
	RevokedAt  *time.Time `json:"revokedAt,omitempty"`
}

ApiKeyStatus defines model for ApiKeyStatus.

type ApiKeys

type ApiKeys = []ApiKey

ApiKeys defines model for ApiKeys.

type ApiMakeImageEntryFromRunningVMByIdJSONRequestBody

type ApiMakeImageEntryFromRunningVMByIdJSONRequestBody = Image

ApiMakeImageEntryFromRunningVMByIdJSONRequestBody defines body for ApiMakeImageEntryFromRunningVMById for application/json ContentType.

type ApiUpdateGatewayByIdJSONRequestBody

type ApiUpdateGatewayByIdJSONRequestBody = Gateway

ApiUpdateGatewayByIdJSONRequestBody defines body for ApiUpdateGatewayById for application/json ContentType.

type ApiUpdateImageByIdJSONRequestBody

type ApiUpdateImageByIdJSONRequestBody = Image

ApiUpdateImageByIdJSONRequestBody defines body for ApiUpdateImageById for application/json ContentType.

type ApiUpdateLoadBalancerByIdJSONRequestBody

type ApiUpdateLoadBalancerByIdJSONRequestBody = ApplicationLoadBalancer

ApiUpdateLoadBalancerByIdJSONRequestBody defines body for ApiUpdateLoadBalancerById for application/json ContentType.

type ApiUpdateNetworkByIdJSONRequestBody

type ApiUpdateNetworkByIdJSONRequestBody = VirtualNetwork

ApiUpdateNetworkByIdJSONRequestBody defines body for ApiUpdateNetworkById for application/json ContentType.

type ApiUpdateNetworkLoadBalancerByIdJSONRequestBody

type ApiUpdateNetworkLoadBalancerByIdJSONRequestBody = NetworkLoadBalancer

ApiUpdateNetworkLoadBalancerByIdJSONRequestBody defines body for ApiUpdateNetworkLoadBalancerById for application/json ContentType.

type ApiUpdateServerByIdJSONRequestBody

type ApiUpdateServerByIdJSONRequestBody = Server

ApiUpdateServerByIdJSONRequestBody defines body for ApiUpdateServerById for application/json ContentType.

type ApiUpdateUserByIdJSONRequestBody

type ApiUpdateUserByIdJSONRequestBody = User

ApiUpdateUserByIdJSONRequestBody defines body for ApiUpdateUserById for application/json ContentType.

type ApiUpdateVolumeByIdJSONRequestBody

type ApiUpdateVolumeByIdJSONRequestBody = Volume

ApiUpdateVolumeByIdJSONRequestBody defines body for ApiUpdateVolumeById for application/json ContentType.

type ApiUpdateVpnGatewayByIdJSONRequestBody

type ApiUpdateVpnGatewayByIdJSONRequestBody = VpnGateway

ApiUpdateVpnGatewayByIdJSONRequestBody defines body for ApiUpdateVpnGatewayById for application/json ContentType.

type ApplicationLoadBalancer

type ApplicationLoadBalancer struct {
	ApiVersion string                      `json:"apiVersion"`
	Kind       string                      `json:"kind"`
	Metadata   Metadata                    `json:"metadata"`
	Spec       ApplicationLoadBalancerSpec `json:"spec"`
	Status     *Status                     `json:"status,omitempty"`
}

ApplicationLoadBalancer defines model for ApplicationLoadBalancer.

type ApplicationLoadBalancerHealthCheck

type ApplicationLoadBalancerHealthCheck struct {
	Enabled            bool    `json:"enabled"`
	HealthyThreshold   *int    `json:"healthyThreshold,omitempty"`
	IntervalSeconds    *int    `json:"intervalSeconds,omitempty"`
	Path               *string `json:"path,omitempty"`
	TimeoutSeconds     *int    `json:"timeoutSeconds,omitempty"`
	UnhealthyThreshold *int    `json:"unhealthyThreshold,omitempty"`
}

ApplicationLoadBalancerHealthCheck defines model for ApplicationLoadBalancerHealthCheck.

type ApplicationLoadBalancerLabelSelector

type ApplicationLoadBalancerLabelSelector struct {
	MatchLabels map[string]string `json:"matchLabels"`
}

ApplicationLoadBalancerLabelSelector defines model for ApplicationLoadBalancerLabelSelector.

type ApplicationLoadBalancerListener

type ApplicationLoadBalancerListener struct {
	BackendPort            int                                  `json:"backendPort"`
	BackendSelector        ApplicationLoadBalancerLabelSelector `json:"backendSelector"`
	HealthCheck            *ApplicationLoadBalancerHealthCheck  `json:"healthCheck,omitempty"`
	LoadBalancingAlgorithm string                               `json:"loadBalancingAlgorithm"`
	Name                   string                               `json:"name"`
	Protocol               string                               `json:"protocol"`
	SessionPersistence     *ApplicationLoadBalancerPersistence  `json:"sessionPersistence,omitempty"`
	VipPort                int                                  `json:"vipPort"`
}

ApplicationLoadBalancerListener defines model for ApplicationLoadBalancerListener.

type ApplicationLoadBalancerPersistence

type ApplicationLoadBalancerPersistence struct {
	CookieName *string `json:"cookieName,omitempty"`
	Enabled    bool    `json:"enabled"`
}

ApplicationLoadBalancerPersistence defines model for ApplicationLoadBalancerPersistence.

type ApplicationLoadBalancerSpec

type ApplicationLoadBalancerSpec struct {
	// BindPublicIpAddress Public bind IP address. CIDR form (e.g. 10.10.0.70/24) is also accepted.
	BindPublicIpAddress string `json:"bindPublicIpAddress"`

	// BindPublicNetworkName Public network name for ALB bind address. Defaults to host-bridge.
	BindPublicNetworkName  *string                           `json:"bindPublicNetworkName,omitempty"`
	InternalVirtualNetwork string                            `json:"internalVirtualNetwork"`
	Listeners              []ApplicationLoadBalancerListener `json:"listeners"`

	// RemoteCIDR Source CIDR allowed to access load balancer forwarding. Empty means allow all.
	RemoteCIDR string `json:"remoteCIDR"`

	// Routes Static routes applied to public NIC.
	Routes *[]Route `json:"routes,omitempty"`
}

ApplicationLoadBalancerSpec defines model for ApplicationLoadBalancerSpec.

type Auth

type Auth struct {
	PublicKey    *string   `json:"publicKey,omitempty"`
	RootPassword *string   `json:"rootPassword,omitempty"`
	Url          *string   `json:"url,omitempty"`
	User         *string   `json:"user,omitempty"`
	Users        *[]string `json:"users,omitempty"`
}

Auth defines model for Auth.

type AuthLoginRequest

type AuthLoginRequest struct {
	Password string `json:"password"`
	UserId   string `json:"userId"`
}

AuthLoginRequest defines model for AuthLoginRequest.

type AuthLoginResponse

type AuthLoginResponse struct {
	AccessToken        string  `json:"accessToken"`
	ExpiresIn          *int64  `json:"expiresIn,omitempty"`
	MustChangePassword *bool   `json:"mustChangePassword,omitempty"`
	RefreshToken       *string `json:"refreshToken,omitempty"`
	TokenType          string  `json:"tokenType"`
	User               *User   `json:"user,omitempty"`
}

AuthLoginResponse defines model for AuthLoginResponse.

type AuthMe

type AuthMe struct {
	DisplayName        *string  `json:"displayName,omitempty"`
	Enabled            *bool    `json:"enabled,omitempty"`
	MustChangePassword *bool    `json:"mustChangePassword,omitempty"`
	Roles              []string `json:"roles"`
	UserId             string   `json:"userId"`
}

AuthMe defines model for AuthMe.

type AuthzCheckRequest

type AuthzCheckRequest struct {
	Action     string                  `json:"action"`
	Context    *map[string]interface{} `json:"context,omitempty"`
	Resource   string                  `json:"resource"`
	ResourceId *string                 `json:"resourceId,omitempty"`
	UserId     *string                 `json:"userId,omitempty"`
}

AuthzCheckRequest defines model for AuthzCheckRequest.

type AuthzCheckResponse

type AuthzCheckResponse struct {
	Allowed      bool      `json:"allowed"`
	MatchedRoles *[]string `json:"matchedRoles,omitempty"`
	Reason       *string   `json:"reason,omitempty"`
}

AuthzCheckResponse defines model for AuthzCheckResponse.

type EchoRouter

type EchoRouter interface {
	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration

type Error

type Error struct {
	Code    int32  `json:"code"`
	Message string `json:"message"`
}

Error defines model for Error.

type Gateway

type Gateway struct {
	ApiVersion string      `json:"apiVersion"`
	Kind       string      `json:"kind"`
	Metadata   Metadata    `json:"metadata"`
	Spec       GatewaySpec `json:"spec"`
	Status     *Status     `json:"status,omitempty"`
}

Gateway defines model for Gateway.

type GatewaySpec

type GatewaySpec struct {
	BindPublicIpAddress    string `json:"bindPublicIpAddress"`
	InternalServerName     string `json:"internalServerName"`
	InternalVirtualNetwork string `json:"internalVirtualNetwork"`

	// RemoteCIDR Source CIDR allowed to access gateway forwarding.
	RemoteCIDR *string `json:"remoteCIDR,omitempty"`

	// RemoteCIDRs Source CIDR list allowed to access gateway forwarding. Empty means allow all.
	RemoteCIDRs *[]string `json:"remoteCIDRs,omitempty"`
	ServerPorts []string  `json:"serverPorts"`
}

GatewaySpec defines model for GatewaySpec.

type HostAllocation

type HostAllocation struct {
	AllocatedCpuCores *int `json:"allocatedCpuCores,omitempty"`
	AllocatedMemoryMB *int `json:"allocatedMemoryMB,omitempty"`
	RunningVMs        *int `json:"runningVMs,omitempty"`
	StoppedVMs        *int `json:"stoppedVMs,omitempty"`
	TotalVMs          *int `json:"totalVMs,omitempty"`
	VirtualNetworks   *int `json:"virtualNetworks,omitempty"`
}

HostAllocation defines model for HostAllocation.

type HostCapacity

type HostCapacity struct {
	CpuCores          *int      `json:"cpuCores,omitempty"`
	DiskCapacityGB    *int      `json:"diskCapacityGB,omitempty"`
	DiskCount         *int      `json:"diskCount,omitempty"`
	MemoryMB          *int      `json:"memoryMB,omitempty"`
	NetworkInterfaces *[]string `json:"networkInterfaces,omitempty"`
}

HostCapacity defines model for HostCapacity.

type HostStatus

type HostStatus struct {
	Allocation  *HostAllocation `json:"allocation,omitempty"`
	Capacity    *HostCapacity   `json:"capacity,omitempty"`
	HostId      *string         `json:"hostId,omitempty"`
	InitiatorId *string         `json:"initiatorId,omitempty"`
	IpAddress   *string         `json:"ipAddress,omitempty"`
	IscsiServer *bool           `json:"iscsiServer,omitempty"`
	LastUpdated *time.Time      `json:"lastUpdated,omitempty"`
	NodeName    *string         `json:"nodeName,omitempty"`
}

HostStatus defines model for HostStatus.

type IPAddress

type IPAddress struct {
	HostId    *string `json:"hostId,omitempty"`
	IpAddress string  `json:"ipAddress"`
	Netmask   *string `json:"netmask,omitempty"`
	NetworkId *string `json:"networkId,omitempty"`
}

IPAddress defines model for IPAddress.

type IPNetwork

type IPNetwork struct {
	AddressMaskLen   *string      `json:"addressMaskLen,omitempty"`
	EndAddress       *string      `json:"endAddress,omitempty"`
	Gateway          *string      `json:"gateway,omitempty"`
	Id               string       `json:"id"`
	Nameservers      *Nameservers `json:"nameservers,omitempty"`
	Netmask          *string      `json:"netmask,omitempty"`
	Netmasklen       *int         `json:"netmasklen,omitempty"`
	NetworkAddress   *string      `json:"networkAddress,omitempty"`
	Routes           *[]Route     `json:"routes,omitempty"`
	StartAddress     *string      `json:"startAddress,omitempty"`
	VirtualNetworkId *string      `json:"virtualNetworkId,omitempty"`
}

IPNetwork defines model for IPNetwork.

type Image

type Image struct {
	ApiVersion string    `json:"apiVersion"`
	Kind       string    `json:"kind"`
	Metadata   Metadata  `json:"metadata"`
	Spec       ImageSpec `json:"spec"`
	Status     *Status   `json:"status,omitempty"`
}

Image defines model for Image.

type ImageSpec

type ImageSpec struct {
	Kind          *string `json:"kind,omitempty"`
	LogicalVolume *string `json:"logicalVolume,omitempty"`
	LvPath        *string `json:"lvPath,omitempty"`
	OsName        *string `json:"osName,omitempty"`
	OsVersion     *string `json:"osVersion,omitempty"`
	Qcow2Path     *string `json:"qcow2Path,omitempty"`
	Size          *int    `json:"size,omitempty"`
	SourceUrl     *string `json:"sourceUrl,omitempty"`
	Type          *string `json:"type,omitempty"`
	VolumeGroup   *string `json:"volumeGroup,omitempty"`
}

ImageSpec defines model for ImageSpec.

type Job

type Job struct {
	Id       string    `json:"id"`
	Metadata *Metadata `json:"metadata,omitempty"`
	Spec     *JobSpec  `json:"spec,omitempty"`
	Status   *Status   `json:"status,omitempty"`
}

Job defines model for Job.

type JobSpec

type JobSpec struct {
	Command     *[]string  `json:"command,omitempty"`
	ExitCode    *int       `json:"exitCode,omitempty"`
	FinishTime  *time.Time `json:"finishTime,omitempty"`
	MaxTime     *time.Time `json:"maxTime,omitempty"`
	RequestTime *time.Time `json:"requestTime,omitempty"`
	StartTime   *time.Time `json:"startTime,omitempty"`
}

JobSpec defines model for JobSpec.

type Metadata

type Metadata struct {
	Comment      *string                 `json:"comment,omitempty"`
	Id           string                  `json:"id"`
	InstanceName *string                 `json:"instanceName,omitempty"`
	Key          *string                 `json:"key,omitempty"`
	Labels       *map[string]interface{} `json:"labels,omitempty"`
	Name         string                  `json:"name"`
	NodeName     *string                 `json:"nodeName,omitempty"`
	Uuid         *string                 `json:"uuid,omitempty"`
}

Metadata defines model for Metadata.

type Nameservers

type Nameservers struct {
	Addresses *[]string `json:"addresses,omitempty"`
	Search    *[]string `json:"search,omitempty"`
}

Nameservers defines model for Nameservers.

type NetworkInterface

type NetworkInterface struct {
	Address     *string      `json:"address,omitempty"`
	Dhcp4       *bool        `json:"dhcp4,omitempty"`
	Dhcp6       *bool        `json:"dhcp6,omitempty"`
	Ethernet    *string      `json:"ethernet,omitempty"`
	IpGateway   *string      `json:"ipGateway,omitempty"`
	IpNetworkId *string      `json:"ipNetworkId,omitempty"`
	Mac         *string      `json:"mac,omitempty"`
	Nameservers *Nameservers `json:"nameservers,omitempty"`
	Netmask     *string      `json:"netmask,omitempty"`
	Netmasklen  *int         `json:"netmasklen,omitempty"`
	Networkid   string       `json:"networkid"`
	Networkname string       `json:"networkname"`
	Portgroup   *string      `json:"portgroup,omitempty"`
	Routes      *[]Route     `json:"routes,omitempty"`
	Uuid        *string      `json:"uuid,omitempty"`
	Vlans       *[]uint      `json:"vlans,omitempty"`
}

NetworkInterface defines model for NetworkInterface.

type NetworkLoadBalancer

type NetworkLoadBalancer struct {
	ApiVersion string                  `json:"apiVersion"`
	Kind       string                  `json:"kind"`
	Metadata   Metadata                `json:"metadata"`
	Spec       NetworkLoadBalancerSpec `json:"spec"`
	Status     *Status                 `json:"status,omitempty"`
}

NetworkLoadBalancer defines model for NetworkLoadBalancer.

type NetworkLoadBalancerLabelSelector

type NetworkLoadBalancerLabelSelector struct {
	MatchLabels map[string]string `json:"matchLabels"`
}

NetworkLoadBalancerLabelSelector defines model for NetworkLoadBalancerLabelSelector.

type NetworkLoadBalancerListener

type NetworkLoadBalancerListener struct {
	BackendPort        int                              `json:"backendPort"`
	BackendSelector    NetworkLoadBalancerLabelSelector `json:"backendSelector"`
	Name               string                           `json:"name"`
	Protocol           string                           `json:"protocol"`
	SessionPersistence *NetworkLoadBalancerPersistence  `json:"sessionPersistence,omitempty"`
	VipPort            int                              `json:"vipPort"`
}

NetworkLoadBalancerListener defines model for NetworkLoadBalancerListener.

type NetworkLoadBalancerPersistence

type NetworkLoadBalancerPersistence struct {
	Enabled bool `json:"enabled"`
}

NetworkLoadBalancerPersistence defines model for NetworkLoadBalancerPersistence.

type NetworkLoadBalancerSpec

type NetworkLoadBalancerSpec struct {
	BindPublicIpAddress    string                        `json:"bindPublicIpAddress"`
	InternalVirtualNetwork string                        `json:"internalVirtualNetwork"`
	Listeners              []NetworkLoadBalancerListener `json:"listeners"`

	// RemoteCIDR Source CIDR allowed to access network load balancer forwarding. Empty means allow all.
	RemoteCIDR string `json:"remoteCIDR"`
}

NetworkLoadBalancerSpec defines model for NetworkLoadBalancerSpec.

type PasswordChangeRequest

type PasswordChangeRequest struct {
	CurrentPassword *string `json:"currentPassword,omitempty"`
	NewPassword     string  `json:"newPassword"`
}

PasswordChangeRequest defines model for PasswordChangeRequest.

type Permission

type Permission struct {
	Resource string   `json:"resource"`
	Verbs    []string `json:"verbs"`
}

Permission defines model for Permission.

type Pong

type Pong struct {
	Ping string `json:"ping"`
}

Pong defines model for Pong.

type RegisterHandlersOptions

type RegisterHandlersOptions struct {
	// BaseURL is prepended to every registered path so the API can be served
	// under a prefix.
	BaseURL string
	// OperationMiddlewares lets the caller attach per-operation middleware at
	// registration time. The map key is the OpenAPI `operationId` value as it
	// appears in the spec (the raw, un-normalized form). Operations that have
	// no entry are registered with no extra middleware. A nil map disables
	// per-operation middleware entirely.
	OperationMiddlewares map[string][]echo.MiddlewareFunc
}

RegisterHandlersOptions configures RegisterHandlersWithOptions.

type ReplyMessage

type ReplyMessage struct {
	Message string `json:"message"`
}

ReplyMessage defines model for ReplyMessage.

type Role

type Role struct {
	ApiVersion string   `json:"apiVersion"`
	Kind       string   `json:"kind"`
	Metadata   Metadata `json:"metadata"`
	Spec       RoleSpec `json:"spec"`
}

Role defines model for Role.

type RoleAssignmentRequest

type RoleAssignmentRequest struct {
	RoleName string `json:"roleName"`
}

RoleAssignmentRequest defines model for RoleAssignmentRequest.

type RoleNames

type RoleNames = []string

RoleNames defines model for RoleNames.

type RoleSpec

type RoleSpec struct {
	Description *string      `json:"description,omitempty"`
	Permissions []Permission `json:"permissions"`
}

RoleSpec defines model for RoleSpec.

type Roles

type Roles = []Role

Roles defines model for Roles.

type Route

type Route struct {
	To  *string `json:"to,omitempty"`
	Via *string `json:"via,omitempty"`
}

Route defines model for Route.

type Server

type Server struct {
	ApiVersion string     `json:"apiVersion"`
	Kind       string     `json:"kind"`
	Metadata   Metadata   `json:"metadata"`
	Spec       ServerSpec `json:"spec"`
	Status     *Status    `json:"status,omitempty"`
}

Server defines model for Server.

type ServerAnsible

type ServerAnsible struct {
	ExtraArgs *[]string `json:"extra-args,omitempty"`
	Inventory string    `json:"inventory"`
	Playbook  string    `json:"playbook"`
}

ServerAnsible defines model for ServerAnsible.

type ServerInterface

type ServerInterface interface {
	// List ApplicationLoadBalancers
	// (GET /application-load-balancer)
	ApiGetLoadBalancers(ctx echo.Context) error
	// Create ApplicationLoadBalancer
	// (POST /application-load-balancer)
	ApiCreateLoadBalancer(ctx echo.Context) error
	// Delete ApplicationLoadBalancer
	// (DELETE /application-load-balancer/{id})
	ApiDeleteLoadBalancerById(ctx echo.Context, id string) error
	// Info for a specific application load balancer
	// (GET /application-load-balancer/{id})
	ApiGetLoadBalancerById(ctx echo.Context, id string) error
	// Update ApplicationLoadBalancer
	// (PUT /application-load-balancer/{id})
	ApiUpdateLoadBalancerById(ctx echo.Context, id string) error
	// Login and issue access token
	// (POST /auth/login)
	ApiAuthLogin(ctx echo.Context) error
	// Logout current session
	// (POST /auth/logout)
	ApiAuthLogout(ctx echo.Context) error
	// Get current authenticated user
	// (GET /auth/me)
	ApiAuthMe(ctx echo.Context) error
	// Check authorization for an action
	// (POST /authz/check)
	ApiAuthzCheck(ctx echo.Context) error
	// List Gateways
	// (GET /gateway)
	ApiGetGateways(ctx echo.Context) error
	// Create Gateway
	// (POST /gateway)
	ApiCreateGateway(ctx echo.Context) error
	// Delete Gateway
	// (DELETE /gateway/{id})
	ApiDeleteGatewayById(ctx echo.Context, id string) error
	// Info for a specific gateway
	// (GET /gateway/{id})
	ApiGetGatewayById(ctx echo.Context, id string) error
	// Update Gateway
	// (PUT /gateway/{id})
	ApiUpdateGatewayById(ctx echo.Context, id string) error
	// Download VPN cert profile for gateway
	// (GET /gateway/{id}/cert)
	ApiGetGatewayCertById(ctx echo.Context, id string) error
	// List Images
	// (GET /image)
	ApiGetImages(ctx echo.Context) error
	// Create Image
	// (POST /image)
	ApiCreateImage(ctx echo.Context) error
	// Delete Image
	// (DELETE /image/{id})
	ApiDeleteImageById(ctx echo.Context, id string) error
	// Info for a specific image
	// (GET /image/{id})
	ApiGetImageById(ctx echo.Context, id string) error
	// Update Image
	// (PUT /image/{id})
	ApiUpdateImageById(ctx echo.Context, id string) error
	// List all assigned IP Networks
	// (GET /ipnetwork)
	ApiListIpNetworks(ctx echo.Context) error
	// Get assigned IP addresses for a specific IP network
	// (GET /ipnetwork/{id}/addresses)
	ApiGetIpAddressesByNetwork(ctx echo.Context, id string) error
	// Get Marmot Cluster Status
	// (GET /marmot/cluster)
	ApiGetMarmotCluster(ctx echo.Context) error
	// Get Marmot Host Status
	// (GET /marmot/status)
	ApiGetMarmotStatus(ctx echo.Context) error
	// Get Network Information
	// (GET /network)
	ApiGetNetworks(ctx echo.Context) error
	// Create Virtual Network
	// (POST /network)
	ApiCreateNetwork(ctx echo.Context) error
	// List NetworkLoadBalancers
	// (GET /network-load-balancer)
	ApiGetNetworkLoadBalancers(ctx echo.Context) error
	// Create NetworkLoadBalancer
	// (POST /network-load-balancer)
	ApiCreateNetworkLoadBalancer(ctx echo.Context) error
	// Delete NetworkLoadBalancer
	// (DELETE /network-load-balancer/{id})
	ApiDeleteNetworkLoadBalancerById(ctx echo.Context, id string) error
	// Info for a specific network load balancer
	// (GET /network-load-balancer/{id})
	ApiGetNetworkLoadBalancerById(ctx echo.Context, id string) error
	// Update NetworkLoadBalancer
	// (PUT /network-load-balancer/{id})
	ApiUpdateNetworkLoadBalancerById(ctx echo.Context, id string) error
	// Delete Virtual Network
	// (DELETE /network/{id})
	ApiDeleteNetworkById(ctx echo.Context, id string) error
	// Get particular virtual network Information
	// (GET /network/{id})
	ApiGetNetworkById(ctx echo.Context, id string) error
	// Update Virtual Network Information by Id
	// (PUT /network/{id})
	ApiUpdateNetworkById(ctx echo.Context, id string) error
	// Get IP networks for a virtual network
	// (GET /network/{id}/ipnetworks)
	ApiGetNetworkIpNetworks(ctx echo.Context, id string) error
	// Alive
	// (GET /ping)
	ApiReplyPing(ctx echo.Context) error
	// List available roles
	// (GET /roles)
	ApiListRoles(ctx echo.Context) error
	// Get a role
	// (GET /roles/{roleName})
	ApiGetRoleByName(ctx echo.Context, roleName string) error
	// Get Server Information
	// (GET /server)
	ApiGetServers(ctx echo.Context) error
	// Create Virtual Server
	// (POST /server)
	ApiCreateServer(ctx echo.Context) error
	// Delete Server
	// (DELETE /server/{id})
	ApiDeleteServerById(ctx echo.Context, id string) error
	// Get particular server Information
	// (GET /server/{id})
	ApiGetServerById(ctx echo.Context, id string) error
	// Create image from Server Object by Id
	// (POST /server/{id})
	ApiMakeImageEntryFromRunningVMById(ctx echo.Context, id string) error
	// Update Server Information by Id
	// (PUT /server/{id})
	ApiUpdateServerById(ctx echo.Context, id string) error
	// Connect to Server Console by Id
	// (GET /server/{id}/console)
	ApiConsoleServerById(ctx echo.Context, id string) error
	// Start Server by Id
	// (POST /server/{id}/start)
	ApiStartServerById(ctx echo.Context, id string) error
	// Stop Server by Id
	// (POST /server/{id}/stop)
	ApiStopServerById(ctx echo.Context, id string) error
	// List users
	// (GET /users)
	ApiListUsers(ctx echo.Context) error
	// Create a user
	// (POST /users)
	ApiCreateUser(ctx echo.Context) error
	// Delete a user
	// (DELETE /users/{userId})
	ApiDeleteUserById(ctx echo.Context, userId string) error
	// Get a user
	// (GET /users/{userId})
	ApiGetUserById(ctx echo.Context, userId string) error
	// Update a user
	// (PUT /users/{userId})
	ApiUpdateUserById(ctx echo.Context, userId string) error
	// List API keys issued by a user
	// (GET /users/{userId}/apikeys)
	ApiListUserApiKeys(ctx echo.Context, userId string) error
	// Create an API key for a user
	// (POST /users/{userId}/apikeys)
	ApiCreateUserApiKey(ctx echo.Context, userId string) error
	// Delete an API key
	// (DELETE /users/{userId}/apikeys/{apiKeyId})
	ApiDeleteUserApiKey(ctx echo.Context, userId string, apiKeyId string) error
	// Lock a user
	// (POST /users/{userId}/lock)
	ApiLockUserById(ctx echo.Context, userId string) error
	// Change or reset user password
	// (POST /users/{userId}/password)
	ApiChangeUserPassword(ctx echo.Context, userId string) error
	// List roles assigned to a user
	// (GET /users/{userId}/roles)
	ApiListUserRoles(ctx echo.Context, userId string) error
	// Add a role to a user
	// (POST /users/{userId}/roles)
	ApiAddUserRole(ctx echo.Context, userId string) error
	// Remove a role from a user
	// (DELETE /users/{userId}/roles/{roleName})
	ApiDeleteUserRole(ctx echo.Context, userId string, roleName string) error
	// Unlock a user
	// (POST /users/{userId}/unlock)
	ApiUnlockUserById(ctx echo.Context, userId string) error
	// Get Version
	// (GET /version)
	ApiGetVersion(ctx echo.Context) error
	// List Volumes
	// (GET /volume)
	ApiListVolumes(ctx echo.Context) error
	// Create Volume
	// (POST /volume)
	ApiCreateVolume(ctx echo.Context) error
	// Delete Volume
	// (DELETE /volume/{volumeId})
	ApiDeleteVolumeById(ctx echo.Context, volumeId string) error
	// Info for a specific volume
	// (GET /volume/{volumeId})
	ApiShowVolumeById(ctx echo.Context, volumeId string) error
	// Update Volume
	// (PUT /volume/{volumeId})
	ApiUpdateVolumeById(ctx echo.Context, volumeId string) error
	// List VpnGateways
	// (GET /vpn-gateway)
	ApiGetVpnGateways(ctx echo.Context) error
	// Create VpnGateway
	// (POST /vpn-gateway)
	ApiCreateVpnGateway(ctx echo.Context) error
	// Delete VpnGateway
	// (DELETE /vpn-gateway/{id})
	ApiDeleteVpnGatewayById(ctx echo.Context, id string) error
	// Info for a specific VpnGateway
	// (GET /vpn-gateway/{id})
	ApiGetVpnGatewayById(ctx echo.Context, id string) error
	// Update VpnGateway
	// (PUT /vpn-gateway/{id})
	ApiUpdateVpnGatewayById(ctx echo.Context, id string) error
	// Download VPN cert profile for vpn gateway
	// (GET /vpn-gateway/{id}/cert)
	ApiGetVpnGatewayCertById(ctx echo.Context, id string) error
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) ApiAddUserRole

func (w *ServerInterfaceWrapper) ApiAddUserRole(ctx echo.Context) error

ApiAddUserRole converts echo context to params.

func (*ServerInterfaceWrapper) ApiAuthLogin

func (w *ServerInterfaceWrapper) ApiAuthLogin(ctx echo.Context) error

ApiAuthLogin converts echo context to params.

func (*ServerInterfaceWrapper) ApiAuthLogout

func (w *ServerInterfaceWrapper) ApiAuthLogout(ctx echo.Context) error

ApiAuthLogout converts echo context to params.

func (*ServerInterfaceWrapper) ApiAuthMe

func (w *ServerInterfaceWrapper) ApiAuthMe(ctx echo.Context) error

ApiAuthMe converts echo context to params.

func (*ServerInterfaceWrapper) ApiAuthzCheck

func (w *ServerInterfaceWrapper) ApiAuthzCheck(ctx echo.Context) error

ApiAuthzCheck converts echo context to params.

func (*ServerInterfaceWrapper) ApiChangeUserPassword

func (w *ServerInterfaceWrapper) ApiChangeUserPassword(ctx echo.Context) error

ApiChangeUserPassword converts echo context to params.

func (*ServerInterfaceWrapper) ApiConsoleServerById

func (w *ServerInterfaceWrapper) ApiConsoleServerById(ctx echo.Context) error

ApiConsoleServerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiCreateGateway

func (w *ServerInterfaceWrapper) ApiCreateGateway(ctx echo.Context) error

ApiCreateGateway converts echo context to params.

func (*ServerInterfaceWrapper) ApiCreateImage

func (w *ServerInterfaceWrapper) ApiCreateImage(ctx echo.Context) error

ApiCreateImage converts echo context to params.

func (*ServerInterfaceWrapper) ApiCreateLoadBalancer

func (w *ServerInterfaceWrapper) ApiCreateLoadBalancer(ctx echo.Context) error

ApiCreateLoadBalancer converts echo context to params.

func (*ServerInterfaceWrapper) ApiCreateNetwork

func (w *ServerInterfaceWrapper) ApiCreateNetwork(ctx echo.Context) error

ApiCreateNetwork converts echo context to params.

func (*ServerInterfaceWrapper) ApiCreateNetworkLoadBalancer

func (w *ServerInterfaceWrapper) ApiCreateNetworkLoadBalancer(ctx echo.Context) error

ApiCreateNetworkLoadBalancer converts echo context to params.

func (*ServerInterfaceWrapper) ApiCreateServer

func (w *ServerInterfaceWrapper) ApiCreateServer(ctx echo.Context) error

ApiCreateServer converts echo context to params.

func (*ServerInterfaceWrapper) ApiCreateUser

func (w *ServerInterfaceWrapper) ApiCreateUser(ctx echo.Context) error

ApiCreateUser converts echo context to params.

func (*ServerInterfaceWrapper) ApiCreateUserApiKey

func (w *ServerInterfaceWrapper) ApiCreateUserApiKey(ctx echo.Context) error

ApiCreateUserApiKey converts echo context to params.

func (*ServerInterfaceWrapper) ApiCreateVolume

func (w *ServerInterfaceWrapper) ApiCreateVolume(ctx echo.Context) error

ApiCreateVolume converts echo context to params.

func (*ServerInterfaceWrapper) ApiCreateVpnGateway

func (w *ServerInterfaceWrapper) ApiCreateVpnGateway(ctx echo.Context) error

ApiCreateVpnGateway converts echo context to params.

func (*ServerInterfaceWrapper) ApiDeleteGatewayById

func (w *ServerInterfaceWrapper) ApiDeleteGatewayById(ctx echo.Context) error

ApiDeleteGatewayById converts echo context to params.

func (*ServerInterfaceWrapper) ApiDeleteImageById

func (w *ServerInterfaceWrapper) ApiDeleteImageById(ctx echo.Context) error

ApiDeleteImageById converts echo context to params.

func (*ServerInterfaceWrapper) ApiDeleteLoadBalancerById

func (w *ServerInterfaceWrapper) ApiDeleteLoadBalancerById(ctx echo.Context) error

ApiDeleteLoadBalancerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiDeleteNetworkById

func (w *ServerInterfaceWrapper) ApiDeleteNetworkById(ctx echo.Context) error

ApiDeleteNetworkById converts echo context to params.

func (*ServerInterfaceWrapper) ApiDeleteNetworkLoadBalancerById

func (w *ServerInterfaceWrapper) ApiDeleteNetworkLoadBalancerById(ctx echo.Context) error

ApiDeleteNetworkLoadBalancerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiDeleteServerById

func (w *ServerInterfaceWrapper) ApiDeleteServerById(ctx echo.Context) error

ApiDeleteServerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiDeleteUserApiKey

func (w *ServerInterfaceWrapper) ApiDeleteUserApiKey(ctx echo.Context) error

ApiDeleteUserApiKey converts echo context to params.

func (*ServerInterfaceWrapper) ApiDeleteUserById

func (w *ServerInterfaceWrapper) ApiDeleteUserById(ctx echo.Context) error

ApiDeleteUserById converts echo context to params.

func (*ServerInterfaceWrapper) ApiDeleteUserRole

func (w *ServerInterfaceWrapper) ApiDeleteUserRole(ctx echo.Context) error

ApiDeleteUserRole converts echo context to params.

func (*ServerInterfaceWrapper) ApiDeleteVolumeById

func (w *ServerInterfaceWrapper) ApiDeleteVolumeById(ctx echo.Context) error

ApiDeleteVolumeById converts echo context to params.

func (*ServerInterfaceWrapper) ApiDeleteVpnGatewayById

func (w *ServerInterfaceWrapper) ApiDeleteVpnGatewayById(ctx echo.Context) error

ApiDeleteVpnGatewayById converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetGatewayById

func (w *ServerInterfaceWrapper) ApiGetGatewayById(ctx echo.Context) error

ApiGetGatewayById converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetGatewayCertById

func (w *ServerInterfaceWrapper) ApiGetGatewayCertById(ctx echo.Context) error

ApiGetGatewayCertById converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetGateways

func (w *ServerInterfaceWrapper) ApiGetGateways(ctx echo.Context) error

ApiGetGateways converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetImageById

func (w *ServerInterfaceWrapper) ApiGetImageById(ctx echo.Context) error

ApiGetImageById converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetImages

func (w *ServerInterfaceWrapper) ApiGetImages(ctx echo.Context) error

ApiGetImages converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetIpAddressesByNetwork

func (w *ServerInterfaceWrapper) ApiGetIpAddressesByNetwork(ctx echo.Context) error

ApiGetIpAddressesByNetwork converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetLoadBalancerById

func (w *ServerInterfaceWrapper) ApiGetLoadBalancerById(ctx echo.Context) error

ApiGetLoadBalancerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetLoadBalancers

func (w *ServerInterfaceWrapper) ApiGetLoadBalancers(ctx echo.Context) error

ApiGetLoadBalancers converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetMarmotCluster

func (w *ServerInterfaceWrapper) ApiGetMarmotCluster(ctx echo.Context) error

ApiGetMarmotCluster converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetMarmotStatus

func (w *ServerInterfaceWrapper) ApiGetMarmotStatus(ctx echo.Context) error

ApiGetMarmotStatus converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetNetworkById

func (w *ServerInterfaceWrapper) ApiGetNetworkById(ctx echo.Context) error

ApiGetNetworkById converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetNetworkIpNetworks

func (w *ServerInterfaceWrapper) ApiGetNetworkIpNetworks(ctx echo.Context) error

ApiGetNetworkIpNetworks converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetNetworkLoadBalancerById

func (w *ServerInterfaceWrapper) ApiGetNetworkLoadBalancerById(ctx echo.Context) error

ApiGetNetworkLoadBalancerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetNetworkLoadBalancers

func (w *ServerInterfaceWrapper) ApiGetNetworkLoadBalancers(ctx echo.Context) error

ApiGetNetworkLoadBalancers converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetNetworks

func (w *ServerInterfaceWrapper) ApiGetNetworks(ctx echo.Context) error

ApiGetNetworks converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetRoleByName

func (w *ServerInterfaceWrapper) ApiGetRoleByName(ctx echo.Context) error

ApiGetRoleByName converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetServerById

func (w *ServerInterfaceWrapper) ApiGetServerById(ctx echo.Context) error

ApiGetServerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetServers

func (w *ServerInterfaceWrapper) ApiGetServers(ctx echo.Context) error

ApiGetServers converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetUserById

func (w *ServerInterfaceWrapper) ApiGetUserById(ctx echo.Context) error

ApiGetUserById converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetVersion

func (w *ServerInterfaceWrapper) ApiGetVersion(ctx echo.Context) error

ApiGetVersion converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetVpnGatewayById

func (w *ServerInterfaceWrapper) ApiGetVpnGatewayById(ctx echo.Context) error

ApiGetVpnGatewayById converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetVpnGatewayCertById

func (w *ServerInterfaceWrapper) ApiGetVpnGatewayCertById(ctx echo.Context) error

ApiGetVpnGatewayCertById converts echo context to params.

func (*ServerInterfaceWrapper) ApiGetVpnGateways

func (w *ServerInterfaceWrapper) ApiGetVpnGateways(ctx echo.Context) error

ApiGetVpnGateways converts echo context to params.

func (*ServerInterfaceWrapper) ApiListIpNetworks

func (w *ServerInterfaceWrapper) ApiListIpNetworks(ctx echo.Context) error

ApiListIpNetworks converts echo context to params.

func (*ServerInterfaceWrapper) ApiListRoles

func (w *ServerInterfaceWrapper) ApiListRoles(ctx echo.Context) error

ApiListRoles converts echo context to params.

func (*ServerInterfaceWrapper) ApiListUserApiKeys

func (w *ServerInterfaceWrapper) ApiListUserApiKeys(ctx echo.Context) error

ApiListUserApiKeys converts echo context to params.

func (*ServerInterfaceWrapper) ApiListUserRoles

func (w *ServerInterfaceWrapper) ApiListUserRoles(ctx echo.Context) error

ApiListUserRoles converts echo context to params.

func (*ServerInterfaceWrapper) ApiListUsers

func (w *ServerInterfaceWrapper) ApiListUsers(ctx echo.Context) error

ApiListUsers converts echo context to params.

func (*ServerInterfaceWrapper) ApiListVolumes

func (w *ServerInterfaceWrapper) ApiListVolumes(ctx echo.Context) error

ApiListVolumes converts echo context to params.

func (*ServerInterfaceWrapper) ApiLockUserById

func (w *ServerInterfaceWrapper) ApiLockUserById(ctx echo.Context) error

ApiLockUserById converts echo context to params.

func (*ServerInterfaceWrapper) ApiMakeImageEntryFromRunningVMById

func (w *ServerInterfaceWrapper) ApiMakeImageEntryFromRunningVMById(ctx echo.Context) error

ApiMakeImageEntryFromRunningVMById converts echo context to params.

func (*ServerInterfaceWrapper) ApiReplyPing

func (w *ServerInterfaceWrapper) ApiReplyPing(ctx echo.Context) error

ApiReplyPing converts echo context to params.

func (*ServerInterfaceWrapper) ApiShowVolumeById

func (w *ServerInterfaceWrapper) ApiShowVolumeById(ctx echo.Context) error

ApiShowVolumeById converts echo context to params.

func (*ServerInterfaceWrapper) ApiStartServerById

func (w *ServerInterfaceWrapper) ApiStartServerById(ctx echo.Context) error

ApiStartServerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiStopServerById

func (w *ServerInterfaceWrapper) ApiStopServerById(ctx echo.Context) error

ApiStopServerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiUnlockUserById

func (w *ServerInterfaceWrapper) ApiUnlockUserById(ctx echo.Context) error

ApiUnlockUserById converts echo context to params.

func (*ServerInterfaceWrapper) ApiUpdateGatewayById

func (w *ServerInterfaceWrapper) ApiUpdateGatewayById(ctx echo.Context) error

ApiUpdateGatewayById converts echo context to params.

func (*ServerInterfaceWrapper) ApiUpdateImageById

func (w *ServerInterfaceWrapper) ApiUpdateImageById(ctx echo.Context) error

ApiUpdateImageById converts echo context to params.

func (*ServerInterfaceWrapper) ApiUpdateLoadBalancerById

func (w *ServerInterfaceWrapper) ApiUpdateLoadBalancerById(ctx echo.Context) error

ApiUpdateLoadBalancerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiUpdateNetworkById

func (w *ServerInterfaceWrapper) ApiUpdateNetworkById(ctx echo.Context) error

ApiUpdateNetworkById converts echo context to params.

func (*ServerInterfaceWrapper) ApiUpdateNetworkLoadBalancerById

func (w *ServerInterfaceWrapper) ApiUpdateNetworkLoadBalancerById(ctx echo.Context) error

ApiUpdateNetworkLoadBalancerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiUpdateServerById

func (w *ServerInterfaceWrapper) ApiUpdateServerById(ctx echo.Context) error

ApiUpdateServerById converts echo context to params.

func (*ServerInterfaceWrapper) ApiUpdateUserById

func (w *ServerInterfaceWrapper) ApiUpdateUserById(ctx echo.Context) error

ApiUpdateUserById converts echo context to params.

func (*ServerInterfaceWrapper) ApiUpdateVolumeById

func (w *ServerInterfaceWrapper) ApiUpdateVolumeById(ctx echo.Context) error

ApiUpdateVolumeById converts echo context to params.

func (*ServerInterfaceWrapper) ApiUpdateVpnGatewayById

func (w *ServerInterfaceWrapper) ApiUpdateVpnGatewayById(ctx echo.Context) error

ApiUpdateVpnGatewayById converts echo context to params.

type ServerSpec

type ServerSpec struct {
	Ansible          *ServerAnsible      `json:"ansible,omitempty"`
	Auth             *Auth               `json:"auth,omitempty"`
	BootVolume       *Volume             `json:"bootVolume,omitempty"`
	Cpu              *int                `json:"cpu,omitempty"`
	Memory           *int                `json:"memory,omitempty"`
	MmImage          *string             `json:"mmImage,omitempty"`
	NetworkInterface *[]NetworkInterface `json:"networkInterface,omitempty"`
	OsLv             *string             `json:"osLv,omitempty"`
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	OsVariant *string   `json:"osVariant,omitempty"`
	OsVg      *string   `json:"osVg,omitempty"`
	Storage   *[]Volume `json:"storage,omitempty"`
}

ServerSpec defines model for ServerSpec.

type Servers

type Servers = []Server

Servers defines model for Servers.

type Status

type Status struct {
	// AttachProtocol Attach protocol used by backend, e.g. rbd for ceph.
	AttachProtocol      *string    `json:"attachProtocol,omitempty"`
	Console             *string    `json:"console,omitempty"`
	CreationTimeStamp   *time.Time `json:"creationTimeStamp,omitempty"`
	DeletionTimeStamp   *time.Time `json:"deletionTimeStamp,omitempty"`
	LastUpdateTimeStamp *time.Time `json:"lastUpdateTimeStamp,omitempty"`
	Message             *string    `json:"message,omitempty"`

	// Provider Backend provider identifier, e.g. ceph.
	Provider *string `json:"provider,omitempty"`

	// ProviderVolumeId Backend volume identifier, e.g. `{pool}/{image}` for ceph.
	ProviderVolumeId *string `json:"providerVolumeId,omitempty"`
	Status           *string `json:"status,omitempty"`
	StatusCode       int     `json:"statusCode"`
}

Status defines model for Status.

type Success

type Success struct {
	Id      string  `json:"id"`
	Message *string `json:"message,omitempty"`
}

Success defines model for Success.

type User

type User struct {
	ApiVersion string      `json:"apiVersion"`
	Kind       string      `json:"kind"`
	Metadata   Metadata    `json:"metadata"`
	Spec       UserSpec    `json:"spec"`
	Status     *UserStatus `json:"status,omitempty"`
}

User defines model for User.

type UserSpec

type UserSpec struct {
	Comment            *string   `json:"comment,omitempty"`
	Email              *string   `json:"email,omitempty"`
	Enabled            bool      `json:"enabled"`
	MustChangePassword *bool     `json:"mustChangePassword,omitempty"`
	PasswordHash       *string   `json:"passwordHash,omitempty"`
	Roles              *[]string `json:"roles,omitempty"`
}

UserSpec defines model for UserSpec.

type UserStatus

type UserStatus struct {
	ApiKeyCount       *int32     `json:"apiKeyCount,omitempty"`
	LastLoginAt       *time.Time `json:"lastLoginAt,omitempty"`
	LockedAt          *time.Time `json:"lockedAt,omitempty"`
	LockedUntil       *time.Time `json:"lockedUntil,omitempty"`
	PasswordUpdatedAt *time.Time `json:"passwordUpdatedAt,omitempty"`
}

UserStatus defines model for UserStatus.

type Users

type Users = []User

Users defines model for Users.

type Version

type Version struct {
	ClientVersion string  `json:"clientVersion"`
	ServerVersion *string `json:"serverVersion,omitempty"`
}

Version defines model for Version.

type VirtualNetwork

type VirtualNetwork struct {
	ApiVersion string             `json:"apiVersion"`
	Kind       string             `json:"kind"`
	Metadata   Metadata           `json:"metadata"`
	Spec       VirtualNetworkSpec `json:"spec"`
	Status     *Status            `json:"status,omitempty"`
}

VirtualNetwork defines model for VirtualNetwork.

type VirtualNetworkSpec

type VirtualNetworkSpec struct {
	BridgeName       *string `json:"bridgeName,omitempty"`
	Dhcp             *bool   `json:"dhcp,omitempty"`
	DhcpEndAddress   *string `json:"dhcpEndAddress,omitempty"`
	DhcpStartAddress *string `json:"dhcpStartAddress,omitempty"`
	ForwardMode      *string `json:"forwardMode,omitempty"`
	IPNetworkAddress *string `json:"iPNetworkAddress,omitempty"`
	IpAddress        *string `json:"ipAddress,omitempty"`
	IpNetworkId      *string `json:"ipNetworkId,omitempty"`
	MacAddress       *string `json:"macAddress,omitempty"`
	Nat              *bool   `json:"nat,omitempty"`
	Netmask          *string `json:"netmask,omitempty"`

	// OverlayMode Overlay mode for multi-node networks: 'none' (default), 'geneve' (OVN-managed), or 'vxlan' (deprecated).
	OverlayMode *VirtualNetworkSpecOverlayMode `json:"overlayMode,omitempty"`

	// PeerPolicy Policy for peer management: 'auto' or 'manual'. This field is ignored when OVN manages peers.
	PeerPolicy *VirtualNetworkSpecPeerPolicy `json:"peerPolicy,omitempty"`
	Stp        *bool                         `json:"stp,omitempty"`

	// UnderlayInterface Interface name for underlay network used by overlay tunnels.
	UnderlayInterface *string `json:"underlayInterface,omitempty"`

	// Vni Overlay VNI (0-16777215) used by Geneve/VXLAN.
	Vni *int `json:"vni,omitempty"`

	// VpnAccess Enable VPN route injection for servers on this network.
	VpnAccess *bool `json:"vpnAccess,omitempty"`
}

VirtualNetworkSpec defines model for VirtualNetworkSpec.

type VirtualNetworkSpecOverlayMode

type VirtualNetworkSpecOverlayMode string

VirtualNetworkSpecOverlayMode Overlay mode for multi-node networks: 'none' (default), 'geneve' (OVN-managed), or 'vxlan' (deprecated).

const (
	Geneve VirtualNetworkSpecOverlayMode = "geneve"
	None   VirtualNetworkSpecOverlayMode = "none"
	Vxlan  VirtualNetworkSpecOverlayMode = "vxlan"
)

Defines values for VirtualNetworkSpecOverlayMode.

func (VirtualNetworkSpecOverlayMode) Valid

Valid indicates whether the value is a known member of the VirtualNetworkSpecOverlayMode enum.

type VirtualNetworkSpecPeerPolicy

type VirtualNetworkSpecPeerPolicy string

VirtualNetworkSpecPeerPolicy Policy for peer management: 'auto' or 'manual'. This field is ignored when OVN manages peers.

const (
	Auto   VirtualNetworkSpecPeerPolicy = "auto"
	Manual VirtualNetworkSpecPeerPolicy = "manual"
)

Defines values for VirtualNetworkSpecPeerPolicy.

func (VirtualNetworkSpecPeerPolicy) Valid

Valid indicates whether the value is a known member of the VirtualNetworkSpecPeerPolicy enum.

type VolSpec

type VolSpec struct {
	Iscsi          *bool   `json:"iscsi,omitempty"`
	IscsiTargetIqn *string `json:"iscsiTargetIqn,omitempty"`
	Kind           *string `json:"kind,omitempty"`
	LogicalVolume  *string `json:"logicalVolume,omitempty"`
	OsVariant      *string `json:"osVariant,omitempty"`
	Path           *string `json:"path,omitempty"`
	Persistent     *bool   `json:"persistent,omitempty"`
	Size           *int    `json:"size,omitempty"`

	// StorageClass Storage classification key. Used for ceph pool selection.
	StorageClass *string `json:"storageClass,omitempty"`

	// Type Volume backend type. Supports qcow2, lvm, ceph.
	Type        *string `json:"type,omitempty"`
	VolumeGroup *string `json:"volumeGroup,omitempty"`
}

VolSpec defines model for VolSpec.

type Volume

type Volume struct {
	ApiVersion string   `json:"apiVersion"`
	Kind       string   `json:"kind"`
	Metadata   Metadata `json:"metadata"`
	Spec       VolSpec  `json:"spec"`
	Status     *Status  `json:"status,omitempty"`
}

Volume defines model for Volume.

type VpnGateway

type VpnGateway struct {
	ApiVersion string         `json:"apiVersion"`
	Kind       string         `json:"kind"`
	Metadata   Metadata       `json:"metadata"`
	Spec       VpnGatewaySpec `json:"spec"`
	Status     *Status        `json:"status,omitempty"`
}

VpnGateway defines model for VpnGateway.

type VpnGatewaySpec

type VpnGatewaySpec struct {
	BindPublicIpAddress    string `json:"bindPublicIpAddress"`
	InternalVirtualNetwork string `json:"internalVirtualNetwork"`

	// RemoteCIDRs Source CIDR list allowed to access vpn gateway. Empty means allow all.
	RemoteCIDRs *[]string `json:"remoteCIDRs,omitempty"`

	// Routes Static routes applied to public NIC.
	Routes *[]Route `json:"routes,omitempty"`
}

VpnGatewaySpec defines model for VpnGatewaySpec.

Jump to

Keyboard shortcuts

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