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.1 DO NOT EDIT.
Index ¶
- Constants
- func GatewayID(g Gateway) string
- func LoadBalancerID(lb ApplicationLoadBalancer) string
- func NetworkLoadBalancerID(lb NetworkLoadBalancer) string
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- func RegisterHandlersWithOptions(router EchoRouter, si ServerInterface, options RegisterHandlersOptions)
- func ServerID(s Server) string
- func SetGatewayID(g *Gateway, id string)
- func SetLoadBalancerID(lb *ApplicationLoadBalancer, id string)
- func SetNetworkLoadBalancerID(lb *NetworkLoadBalancer, id string)
- func SetServerID(s *Server, id string)
- func SetVirtualNetworkID(v *VirtualNetwork, id string)
- func SetVolumeID(v *Volume, id string)
- func SetVpnGatewayID(g *VpnGateway, id string)
- func VirtualNetworkID(v VirtualNetwork) string
- func VolumeID(v Volume) string
- func VpnGatewayID(g VpnGateway) string
- type ApiAddUserRoleJSONRequestBody
- type ApiAuthLoginJSONRequestBody
- type ApiAuthzCheckJSONRequestBody
- type ApiChangeUserPasswordJSONRequestBody
- type ApiCreateGatewayJSONRequestBody
- type ApiCreateImageJSONRequestBody
- type ApiCreateLoadBalancerJSONRequestBody
- type ApiCreateNetworkJSONRequestBody
- type ApiCreateNetworkLoadBalancerJSONRequestBody
- type ApiCreateServerJSONRequestBody
- type ApiCreateUserApiKeyJSONRequestBody
- type ApiCreateUserJSONRequestBody
- type ApiCreateVolumeJSONRequestBody
- type ApiCreateVpnGatewayJSONRequestBody
- type ApiKey
- type ApiKeyCreateRequest
- type ApiKeySpec
- type ApiKeyStatus
- type ApiKeys
- type ApiMakeImageEntryFromRunningVMByIdJSONRequestBody
- type ApiUpdateGatewayByIdJSONRequestBody
- type ApiUpdateImageByIdJSONRequestBody
- type ApiUpdateLoadBalancerByIdJSONRequestBody
- type ApiUpdateNetworkByIdJSONRequestBody
- type ApiUpdateNetworkLoadBalancerByIdJSONRequestBody
- type ApiUpdateServerByIdJSONRequestBody
- type ApiUpdateUserByIdJSONRequestBody
- type ApiUpdateVolumeByIdJSONRequestBody
- type ApiUpdateVpnGatewayByIdJSONRequestBody
- type ApplicationLoadBalancer
- type ApplicationLoadBalancerHealthCheck
- type ApplicationLoadBalancerLabelSelector
- type ApplicationLoadBalancerListener
- type ApplicationLoadBalancerPersistence
- type ApplicationLoadBalancerSpec
- type Auth
- type AuthLoginRequest
- type AuthLoginResponse
- type AuthMe
- type AuthzCheckRequest
- type AuthzCheckResponse
- type EchoRouter
- type Error
- type Gateway
- type GatewaySpec
- type HostAllocation
- type HostCapacity
- type HostStatus
- type IPAddress
- type IPNetwork
- type Image
- type ImageSpec
- type Job
- type JobSpec
- type Metadata
- type Nameservers
- type NetworkInterface
- type NetworkLoadBalancer
- type NetworkLoadBalancerLabelSelector
- type NetworkLoadBalancerListener
- type NetworkLoadBalancerPersistence
- type NetworkLoadBalancerSpec
- type PasswordChangeRequest
- type Permission
- type Pong
- type RegisterHandlersOptions
- type ReplyMessage
- type Role
- type RoleAssignmentRequest
- type RoleNames
- type RoleSpec
- type Roles
- type Route
- type Server
- type ServerAnsible
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) ApiAddUserRole(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiAuthLogin(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiAuthLogout(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiAuthMe(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiAuthzCheck(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiChangeUserPassword(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiConsoleServerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiCreateGateway(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiCreateImage(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiCreateLoadBalancer(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiCreateNetwork(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiCreateNetworkLoadBalancer(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiCreateServer(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiCreateUser(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiCreateUserApiKey(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiCreateVolume(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiCreateVpnGateway(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiDeleteGatewayById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiDeleteImageById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiDeleteLoadBalancerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiDeleteNetworkById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiDeleteNetworkLoadBalancerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiDeleteServerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiDeleteUserApiKey(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiDeleteUserById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiDeleteUserRole(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiDeleteVolumeById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiDeleteVpnGatewayById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetGatewayById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetGatewayCertById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetGateways(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetImageById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetImages(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetIpAddressesByNetwork(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetLoadBalancerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetLoadBalancers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetMarmotCluster(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetMarmotStatus(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetNetworkById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetNetworkIpNetworks(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetNetworkLoadBalancerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetNetworkLoadBalancers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetNetworks(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetRoleByName(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetServerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetServers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetUserById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetVersion(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetVpnGatewayById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetVpnGatewayCertById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiGetVpnGateways(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiListIpNetworks(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiListRoles(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiListUserApiKeys(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiListUserRoles(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiListUsers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiListVolumes(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiLockUserById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiMakeImageEntryFromRunningVMById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiReplyPing(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiShowVolumeById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiStartServerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiStopServerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiUnlockUserById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiUpdateGatewayById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiUpdateImageById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiUpdateLoadBalancerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiUpdateNetworkById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiUpdateNetworkLoadBalancerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiUpdateServerById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiUpdateUserById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiUpdateVolumeById(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApiUpdateVpnGatewayById(ctx echo.Context) error
- type ServerSpec
- type Servers
- type Status
- type Success
- type User
- type UserSpec
- type UserStatus
- type Users
- type Version
- type VirtualNetwork
- type VirtualNetworkSpec
- type VirtualNetworkSpecOverlayMode
- type VirtualNetworkSpecPeerPolicy
- type VolSpec
- type Volume
- type VpnGateway
- type VpnGatewaySpec
Constants ¶
const (
BearerAuthScopes bearerAuthContextKey = "BearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func LoadBalancerID ¶ added in v0.19.0
func LoadBalancerID(lb ApplicationLoadBalancer) string
LoadBalancerID returns the load balancer identifier stored in metadata.id.
func NetworkLoadBalancerID ¶ added in v0.20.0
func NetworkLoadBalancerID(lb NetworkLoadBalancer) string
NetworkLoadBalancerID returns the network load balancer identifier stored in metadata.id.
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 ¶ added in v0.13.0
func RegisterHandlersWithOptions(router EchoRouter, si ServerInterface, options RegisterHandlersOptions)
RegisterHandlersWithOptions registers handlers using the supplied options, including any per-operation middleware.
func SetGatewayID ¶ added in v0.16.0
SetGatewayID stores the gateway identifier into metadata.id.
func SetLoadBalancerID ¶ added in v0.19.0
func SetLoadBalancerID(lb *ApplicationLoadBalancer, id string)
SetLoadBalancerID stores the load balancer identifier into metadata.id.
func SetNetworkLoadBalancerID ¶ added in v0.20.0
func SetNetworkLoadBalancerID(lb *NetworkLoadBalancer, id string)
SetNetworkLoadBalancerID stores the network load balancer identifier into metadata.id.
func SetServerID ¶ added in v0.14.1
SetServerID stores the server identifier into metadata.id.
func SetVirtualNetworkID ¶ added in v0.14.1
func SetVirtualNetworkID(v *VirtualNetwork, id string)
SetVirtualNetworkID stores the virtual network identifier into metadata.id.
func SetVolumeID ¶ added in v0.14.1
SetVolumeID stores the volume identifier into metadata.id.
func SetVpnGatewayID ¶ added in v0.17.0
func SetVpnGatewayID(g *VpnGateway, id string)
SetVpnGatewayID stores the vpn gateway identifier into metadata.id.
func VirtualNetworkID ¶ added in v0.14.1
func VirtualNetworkID(v VirtualNetwork) string
VirtualNetworkID returns the virtual network identifier stored in metadata.id.
func VpnGatewayID ¶ added in v0.17.0
func VpnGatewayID(g VpnGateway) string
VpnGatewayID returns the vpn gateway identifier stored in metadata.id.
Types ¶
type ApiAddUserRoleJSONRequestBody ¶ added in v0.25.0
type ApiAddUserRoleJSONRequestBody = RoleAssignmentRequest
ApiAddUserRoleJSONRequestBody defines body for ApiAddUserRole for application/json ContentType.
type ApiAuthLoginJSONRequestBody ¶ added in v0.25.0
type ApiAuthLoginJSONRequestBody = AuthLoginRequest
ApiAuthLoginJSONRequestBody defines body for ApiAuthLogin for application/json ContentType.
type ApiAuthzCheckJSONRequestBody ¶ added in v0.25.0
type ApiAuthzCheckJSONRequestBody = AuthzCheckRequest
ApiAuthzCheckJSONRequestBody defines body for ApiAuthzCheck for application/json ContentType.
type ApiChangeUserPasswordJSONRequestBody ¶ added in v0.25.0
type ApiChangeUserPasswordJSONRequestBody = PasswordChangeRequest
ApiChangeUserPasswordJSONRequestBody defines body for ApiChangeUserPassword for application/json ContentType.
type ApiCreateGatewayJSONRequestBody ¶ added in v0.16.0
type ApiCreateGatewayJSONRequestBody = Gateway
ApiCreateGatewayJSONRequestBody defines body for ApiCreateGateway for application/json ContentType.
type ApiCreateImageJSONRequestBody ¶ added in v0.11.0
type ApiCreateImageJSONRequestBody = Image
ApiCreateImageJSONRequestBody defines body for ApiCreateImage for application/json ContentType.
type ApiCreateLoadBalancerJSONRequestBody ¶ added in v0.19.3
type ApiCreateLoadBalancerJSONRequestBody = ApplicationLoadBalancer
ApiCreateLoadBalancerJSONRequestBody defines body for ApiCreateLoadBalancer for application/json ContentType.
type ApiCreateNetworkJSONRequestBody ¶ added in v0.11.0
type ApiCreateNetworkJSONRequestBody = VirtualNetwork
ApiCreateNetworkJSONRequestBody defines body for ApiCreateNetwork for application/json ContentType.
type ApiCreateNetworkLoadBalancerJSONRequestBody ¶ added in v0.20.0
type ApiCreateNetworkLoadBalancerJSONRequestBody = NetworkLoadBalancer
ApiCreateNetworkLoadBalancerJSONRequestBody defines body for ApiCreateNetworkLoadBalancer for application/json ContentType.
type ApiCreateServerJSONRequestBody ¶ added in v0.11.0
type ApiCreateServerJSONRequestBody = Server
ApiCreateServerJSONRequestBody defines body for ApiCreateServer for application/json ContentType.
type ApiCreateUserApiKeyJSONRequestBody ¶ added in v0.25.0
type ApiCreateUserApiKeyJSONRequestBody = ApiKeyCreateRequest
ApiCreateUserApiKeyJSONRequestBody defines body for ApiCreateUserApiKey for application/json ContentType.
type ApiCreateUserJSONRequestBody ¶ added in v0.25.0
type ApiCreateUserJSONRequestBody = User
ApiCreateUserJSONRequestBody defines body for ApiCreateUser for application/json ContentType.
type ApiCreateVolumeJSONRequestBody ¶ added in v0.11.0
type ApiCreateVolumeJSONRequestBody = Volume
ApiCreateVolumeJSONRequestBody defines body for ApiCreateVolume for application/json ContentType.
type ApiCreateVpnGatewayJSONRequestBody ¶ added in v0.19.3
type ApiCreateVpnGatewayJSONRequestBody = VpnGateway
ApiCreateVpnGatewayJSONRequestBody defines body for ApiCreateVpnGateway for application/json ContentType.
type ApiKey ¶ added in v0.25.0
type ApiKey struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec ApiKeySpec `json:"spec" yaml:"spec"`
Status *ApiKeyStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
ApiKey defines model for ApiKey.
type ApiKeyCreateRequest ¶ added in v0.25.0
type ApiKeyCreateRequest struct {
Comment *string `json:"comment,omitempty" yaml:"comment,omitempty"`
ExpiresAt *time.Time `json:"expiresAt,omitempty" yaml:"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" yaml:"sessionType,omitempty"`
}
ApiKeyCreateRequest defines model for ApiKeyCreateRequest.
type ApiKeySpec ¶ added in v0.25.0
type ApiKeySpec struct {
Comment *string `json:"comment,omitempty" yaml:"comment,omitempty"`
ExpiresAt *time.Time `json:"expiresAt,omitempty" yaml:"expiresAt,omitempty"`
IssuedAt *time.Time `json:"issuedAt,omitempty" yaml:"issuedAt,omitempty"`
Revoked *bool `json:"revoked,omitempty" yaml:"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" yaml:"sessionType,omitempty"`
TokenPrefix *string `json:"tokenPrefix,omitempty" yaml:"tokenPrefix,omitempty"`
}
ApiKeySpec defines model for ApiKeySpec.
type ApiKeyStatus ¶ added in v0.25.0
type ApiKeyStatus struct {
LastUsedAt *time.Time `json:"lastUsedAt,omitempty" yaml:"lastUsedAt,omitempty"`
RevokedAt *time.Time `json:"revokedAt,omitempty" yaml:"revokedAt,omitempty"`
}
ApiKeyStatus defines model for ApiKeyStatus.
type ApiMakeImageEntryFromRunningVMByIdJSONRequestBody ¶ added in v0.11.0
type ApiMakeImageEntryFromRunningVMByIdJSONRequestBody = Image
ApiMakeImageEntryFromRunningVMByIdJSONRequestBody defines body for ApiMakeImageEntryFromRunningVMById for application/json ContentType.
type ApiUpdateGatewayByIdJSONRequestBody ¶ added in v0.16.0
type ApiUpdateGatewayByIdJSONRequestBody = Gateway
ApiUpdateGatewayByIdJSONRequestBody defines body for ApiUpdateGatewayById for application/json ContentType.
type ApiUpdateImageByIdJSONRequestBody ¶ added in v0.11.0
type ApiUpdateImageByIdJSONRequestBody = Image
ApiUpdateImageByIdJSONRequestBody defines body for ApiUpdateImageById for application/json ContentType.
type ApiUpdateLoadBalancerByIdJSONRequestBody ¶ added in v0.19.3
type ApiUpdateLoadBalancerByIdJSONRequestBody = ApplicationLoadBalancer
ApiUpdateLoadBalancerByIdJSONRequestBody defines body for ApiUpdateLoadBalancerById for application/json ContentType.
type ApiUpdateNetworkByIdJSONRequestBody ¶ added in v0.11.0
type ApiUpdateNetworkByIdJSONRequestBody = VirtualNetwork
ApiUpdateNetworkByIdJSONRequestBody defines body for ApiUpdateNetworkById for application/json ContentType.
type ApiUpdateNetworkLoadBalancerByIdJSONRequestBody ¶ added in v0.20.0
type ApiUpdateNetworkLoadBalancerByIdJSONRequestBody = NetworkLoadBalancer
ApiUpdateNetworkLoadBalancerByIdJSONRequestBody defines body for ApiUpdateNetworkLoadBalancerById for application/json ContentType.
type ApiUpdateServerByIdJSONRequestBody ¶ added in v0.11.0
type ApiUpdateServerByIdJSONRequestBody = Server
ApiUpdateServerByIdJSONRequestBody defines body for ApiUpdateServerById for application/json ContentType.
type ApiUpdateUserByIdJSONRequestBody ¶ added in v0.25.0
type ApiUpdateUserByIdJSONRequestBody = User
ApiUpdateUserByIdJSONRequestBody defines body for ApiUpdateUserById for application/json ContentType.
type ApiUpdateVolumeByIdJSONRequestBody ¶ added in v0.11.0
type ApiUpdateVolumeByIdJSONRequestBody = Volume
ApiUpdateVolumeByIdJSONRequestBody defines body for ApiUpdateVolumeById for application/json ContentType.
type ApiUpdateVpnGatewayByIdJSONRequestBody ¶ added in v0.19.3
type ApiUpdateVpnGatewayByIdJSONRequestBody = VpnGateway
ApiUpdateVpnGatewayByIdJSONRequestBody defines body for ApiUpdateVpnGatewayById for application/json ContentType.
type ApplicationLoadBalancer ¶ added in v0.19.0
type ApplicationLoadBalancer struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec ApplicationLoadBalancerSpec `json:"spec" yaml:"spec"`
Status *Status `json:"status,omitempty" yaml:"status,omitempty"`
}
ApplicationLoadBalancer defines model for ApplicationLoadBalancer.
type ApplicationLoadBalancerHealthCheck ¶ added in v0.19.3
type ApplicationLoadBalancerHealthCheck struct {
Enabled bool `json:"enabled" yaml:"enabled"`
HealthyThreshold *int `json:"healthyThreshold,omitempty" yaml:"healthyThreshold,omitempty"`
IntervalSeconds *int `json:"intervalSeconds,omitempty" yaml:"intervalSeconds,omitempty"`
Path *string `json:"path,omitempty" yaml:"path,omitempty"`
TimeoutSeconds *int `json:"timeoutSeconds,omitempty" yaml:"timeoutSeconds,omitempty"`
UnhealthyThreshold *int `json:"unhealthyThreshold,omitempty" yaml:"unhealthyThreshold,omitempty"`
}
ApplicationLoadBalancerHealthCheck defines model for ApplicationLoadBalancerHealthCheck.
type ApplicationLoadBalancerLabelSelector ¶ added in v0.19.3
type ApplicationLoadBalancerLabelSelector struct {
MatchLabels map[string]string `json:"matchLabels" yaml:"matchLabels"`
}
ApplicationLoadBalancerLabelSelector defines model for ApplicationLoadBalancerLabelSelector.
type ApplicationLoadBalancerListener ¶ added in v0.19.3
type ApplicationLoadBalancerListener struct {
BackendPort int `json:"backendPort" yaml:"backendPort"`
BackendSelector ApplicationLoadBalancerLabelSelector `json:"backendSelector" yaml:"backendSelector"`
HealthCheck *ApplicationLoadBalancerHealthCheck `json:"healthCheck,omitempty" yaml:"healthCheck,omitempty"`
LoadBalancingAlgorithm string `json:"loadBalancingAlgorithm" yaml:"loadBalancingAlgorithm"`
Name string `json:"name" yaml:"name"`
Protocol string `json:"protocol" yaml:"protocol"`
SessionPersistence *ApplicationLoadBalancerPersistence `json:"sessionPersistence,omitempty" yaml:"sessionPersistence,omitempty"`
VipPort int `json:"vipPort" yaml:"vipPort"`
}
ApplicationLoadBalancerListener defines model for ApplicationLoadBalancerListener.
type ApplicationLoadBalancerPersistence ¶ added in v0.19.3
type ApplicationLoadBalancerPersistence struct {
CookieName *string `json:"cookieName,omitempty" yaml:"cookieName,omitempty"`
Enabled bool `json:"enabled" yaml:"enabled"`
}
ApplicationLoadBalancerPersistence defines model for ApplicationLoadBalancerPersistence.
type ApplicationLoadBalancerSpec ¶ added in v0.19.3
type ApplicationLoadBalancerSpec struct {
// BindPublicIpAddress Public bind IP address. CIDR form (e.g. 10.10.0.70/24) is also accepted.
BindPublicIpAddress string `json:"bindPublicIpAddress" yaml:"bindPublicIpAddress"`
// BindPublicNetworkName Public network name for ALB bind address. Defaults to host-bridge.
BindPublicNetworkName *string `json:"bindPublicNetworkName,omitempty" yaml:"bindPublicNetworkName,omitempty"`
InternalVirtualNetwork string `json:"internalVirtualNetwork" yaml:"internalVirtualNetwork"`
Listeners []ApplicationLoadBalancerListener `json:"listeners" yaml:"listeners"`
// RemoteCIDR Source CIDR allowed to access load balancer forwarding. Empty means allow all.
RemoteCIDR string `json:"remoteCIDR" yaml:"remoteCIDR"`
// Routes Static routes applied to public NIC.
Routes *[]Route `json:"routes,omitempty" yaml:"routes,omitempty"`
}
ApplicationLoadBalancerSpec defines model for ApplicationLoadBalancerSpec.
type Auth ¶ added in v0.11.0
type Auth struct {
PublicKey *string `json:"publicKey,omitempty" yaml:"publicKey,omitempty"`
RootPassword *string `json:"rootPassword,omitempty" yaml:"rootPassword,omitempty"`
Url *string `json:"url,omitempty" yaml:"url,omitempty"`
User *string `json:"user,omitempty" yaml:"user,omitempty"`
Users *[]string `json:"users,omitempty" yaml:"users,omitempty"`
}
Auth defines model for Auth.
type AuthLoginRequest ¶ added in v0.25.0
type AuthLoginRequest struct {
Password string `json:"password" yaml:"password"`
UserId string `json:"userId" yaml:"userId"`
}
AuthLoginRequest defines model for AuthLoginRequest.
type AuthLoginResponse ¶ added in v0.25.0
type AuthLoginResponse struct {
AccessToken string `json:"accessToken" yaml:"accessToken"`
ExpiresIn *int64 `json:"expiresIn,omitempty" yaml:"expiresIn,omitempty"`
MustChangePassword *bool `json:"mustChangePassword,omitempty" yaml:"mustChangePassword,omitempty"`
RefreshToken *string `json:"refreshToken,omitempty" yaml:"refreshToken,omitempty"`
TokenType string `json:"tokenType" yaml:"tokenType"`
User *User `json:"user,omitempty" yaml:"user,omitempty"`
}
AuthLoginResponse defines model for AuthLoginResponse.
type AuthMe ¶ added in v0.25.0
type AuthMe struct {
DisplayName *string `json:"displayName,omitempty" yaml:"displayName,omitempty"`
Enabled *bool `json:"enabled,omitempty" yaml:"enabled,omitempty"`
MustChangePassword *bool `json:"mustChangePassword,omitempty" yaml:"mustChangePassword,omitempty"`
Roles []string `json:"roles" yaml:"roles"`
UserId string `json:"userId" yaml:"userId"`
}
AuthMe defines model for AuthMe.
type AuthzCheckRequest ¶ added in v0.25.0
type AuthzCheckRequest struct {
Action string `json:"action" yaml:"action"`
Context *map[string]interface{} `json:"context,omitempty" yaml:"context,omitempty"`
Resource string `json:"resource" yaml:"resource"`
ResourceId *string `json:"resourceId,omitempty" yaml:"resourceId,omitempty"`
UserId *string `json:"userId,omitempty" yaml:"userId,omitempty"`
}
AuthzCheckRequest defines model for AuthzCheckRequest.
type AuthzCheckResponse ¶ added in v0.25.0
type AuthzCheckResponse struct {
Allowed bool `json:"allowed" yaml:"allowed"`
MatchedRoles *[]string `json:"matchedRoles,omitempty" yaml:"matchedRoles,omitempty"`
Reason *string `json:"reason,omitempty" yaml:"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" yaml:"code"`
Message string `json:"message" yaml:"message"`
}
Error defines model for Error.
type Gateway ¶ added in v0.16.0
type Gateway struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec GatewaySpec `json:"spec" yaml:"spec"`
Status *Status `json:"status,omitempty" yaml:"status,omitempty"`
}
Gateway defines model for Gateway.
type GatewaySpec ¶ added in v0.16.0
type GatewaySpec struct {
BindPublicIpAddress string `json:"bindPublicIpAddress" yaml:"bindPublicIpAddress"`
InternalServerName string `json:"internalServerName" yaml:"internalServerName"`
InternalVirtualNetwork string `json:"internalVirtualNetwork" yaml:"internalVirtualNetwork"`
// RemoteCIDR Source CIDR allowed to access gateway forwarding.
RemoteCIDR *string `json:"remoteCIDR,omitempty" yaml:"remoteCIDR,omitempty"`
// RemoteCIDRs Source CIDR list allowed to access gateway forwarding. Empty means allow all.
RemoteCIDRs *[]string `json:"remoteCIDRs,omitempty" yaml:"remoteCIDRs,omitempty"`
ServerPorts []string `json:"serverPorts" yaml:"serverPorts"`
}
GatewaySpec defines model for GatewaySpec.
type HostAllocation ¶ added in v0.11.6
type HostAllocation struct {
AllocatedCpuCores *int `json:"allocatedCpuCores,omitempty" yaml:"allocatedCpuCores,omitempty"`
AllocatedMemoryMB *int `json:"allocatedMemoryMB,omitempty" yaml:"allocatedMemoryMB,omitempty"`
RunningVMs *int `json:"runningVMs,omitempty" yaml:"runningVMs,omitempty"`
StoppedVMs *int `json:"stoppedVMs,omitempty" yaml:"stoppedVMs,omitempty"`
TotalVMs *int `json:"totalVMs,omitempty" yaml:"totalVMs,omitempty"`
VirtualNetworks *int `json:"virtualNetworks,omitempty" yaml:"virtualNetworks,omitempty"`
}
HostAllocation defines model for HostAllocation.
type HostCapacity ¶ added in v0.11.6
type HostCapacity struct {
CpuCores *int `json:"cpuCores,omitempty" yaml:"cpuCores,omitempty"`
DiskCapacityGB *int `json:"diskCapacityGB,omitempty" yaml:"diskCapacityGB,omitempty"`
DiskCount *int `json:"diskCount,omitempty" yaml:"diskCount,omitempty"`
MemoryMB *int `json:"memoryMB,omitempty" yaml:"memoryMB,omitempty"`
NetworkInterfaces *[]string `json:"networkInterfaces,omitempty" yaml:"networkInterfaces,omitempty"`
}
HostCapacity defines model for HostCapacity.
type HostStatus ¶ added in v0.11.6
type HostStatus struct {
Allocation *HostAllocation `json:"allocation,omitempty" yaml:"allocation,omitempty"`
Capacity *HostCapacity `json:"capacity,omitempty" yaml:"capacity,omitempty"`
HostId *string `json:"hostId,omitempty" yaml:"hostId,omitempty"`
InitiatorId *string `json:"initiatorId,omitempty" yaml:"initiatorId,omitempty"`
IpAddress *string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"`
IscsiServer *bool `json:"iscsiServer,omitempty" yaml:"iscsiServer,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty" yaml:"lastUpdated,omitempty"`
NodeName *string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
}
HostStatus defines model for HostStatus.
type IPAddress ¶ added in v0.11.0
type IPAddress struct {
HostId *string `json:"hostId,omitempty" yaml:"hostId,omitempty"`
IpAddress string `json:"ipAddress" yaml:"ipAddress"`
Netmask *string `json:"netmask,omitempty" yaml:"netmask,omitempty"`
NetworkId *string `json:"networkId,omitempty" yaml:"networkId,omitempty"`
}
IPAddress defines model for IPAddress.
type IPNetwork ¶ added in v0.11.0
type IPNetwork struct {
AddressMaskLen *string `json:"addressMaskLen,omitempty" yaml:"addressMaskLen,omitempty"`
EndAddress *string `json:"endAddress,omitempty" yaml:"endAddress,omitempty"`
Gateway *string `json:"gateway,omitempty" yaml:"gateway,omitempty"`
Id string `json:"id" yaml:"id"`
Nameservers *Nameservers `json:"nameservers,omitempty" yaml:"nameservers,omitempty"`
Netmask *string `json:"netmask,omitempty" yaml:"netmask,omitempty"`
Netmasklen *int `json:"netmasklen,omitempty" yaml:"netmasklen,omitempty"`
NetworkAddress *string `json:"networkAddress,omitempty" yaml:"networkAddress,omitempty"`
Routes *[]Route `json:"routes,omitempty" yaml:"routes,omitempty"`
StartAddress *string `json:"startAddress,omitempty" yaml:"startAddress,omitempty"`
VirtualNetworkId *string `json:"virtualNetworkId,omitempty" yaml:"virtualNetworkId,omitempty"`
}
IPNetwork defines model for IPNetwork.
type Image ¶ added in v0.11.0
type Image struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec ImageSpec `json:"spec" yaml:"spec"`
Status *Status `json:"status,omitempty" yaml:"status,omitempty"`
}
Image defines model for Image.
type ImageSpec ¶ added in v0.11.0
type ImageSpec struct {
Kind *string `json:"kind,omitempty" yaml:"kind,omitempty"`
LogicalVolume *string `json:"logicalVolume,omitempty" yaml:"logicalVolume,omitempty"`
LvPath *string `json:"lvPath,omitempty" yaml:"lvPath,omitempty"`
OsName *string `json:"osName,omitempty" yaml:"osName,omitempty"`
OsVersion *string `json:"osVersion,omitempty" yaml:"osVersion,omitempty"`
Qcow2Path *string `json:"qcow2Path,omitempty" yaml:"qcow2Path,omitempty"`
Size *int `json:"size,omitempty" yaml:"size,omitempty"`
SourceUrl *string `json:"sourceUrl,omitempty" yaml:"sourceUrl,omitempty"`
Type *string `json:"type,omitempty" yaml:"type,omitempty"`
VolumeGroup *string `json:"volumeGroup,omitempty" yaml:"volumeGroup,omitempty"`
}
ImageSpec defines model for ImageSpec.
type Job ¶ added in v0.11.0
type Job struct {
Id string `json:"id" yaml:"id"`
Metadata *Metadata `json:"metadata,omitempty" yaml:"metadata,omitempty"`
Spec *JobSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
Status *Status `json:"status,omitempty" yaml:"status,omitempty"`
}
Job defines model for Job.
type JobSpec ¶ added in v0.11.0
type JobSpec struct {
Command *[]string `json:"command,omitempty" yaml:"command,omitempty"`
ExitCode *int `json:"exitCode,omitempty" yaml:"exitCode,omitempty"`
FinishTime *time.Time `json:"finishTime,omitempty" yaml:"finishTime,omitempty"`
MaxTime *time.Time `json:"maxTime,omitempty" yaml:"maxTime,omitempty"`
RequestTime *time.Time `json:"requestTime,omitempty" yaml:"requestTime,omitempty"`
StartTime *time.Time `json:"startTime,omitempty" yaml:"startTime,omitempty"`
}
JobSpec defines model for JobSpec.
type Metadata ¶ added in v0.11.0
type Metadata struct {
Comment *string `json:"comment,omitempty" yaml:"comment,omitempty"`
Id string `json:"id" yaml:"id"`
InstanceName *string `json:"instanceName,omitempty" yaml:"instanceName,omitempty"`
Key *string `json:"key,omitempty" yaml:"key,omitempty"`
Labels *map[string]interface{} `json:"labels,omitempty" yaml:"labels,omitempty"`
Name string `json:"name" yaml:"name"`
NodeName *string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
Uuid *string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
}
Metadata defines model for Metadata.
type Nameservers ¶ added in v0.9.3
type Nameservers struct {
Addresses *[]string `json:"addresses,omitempty" yaml:"addresses,omitempty"`
Search *[]string `json:"search,omitempty" yaml:"search,omitempty"`
}
Nameservers defines model for Nameservers.
type NetworkInterface ¶ added in v0.11.0
type NetworkInterface struct {
Address *string `json:"address,omitempty" yaml:"address,omitempty"`
Dhcp4 *bool `json:"dhcp4,omitempty" yaml:"dhcp4,omitempty"`
Dhcp6 *bool `json:"dhcp6,omitempty" yaml:"dhcp6,omitempty"`
Ethernet *string `json:"ethernet,omitempty" yaml:"ethernet,omitempty"`
IpGateway *string `json:"ipGateway,omitempty" yaml:"ipGateway,omitempty"`
IpNetworkId *string `json:"ipNetworkId,omitempty" yaml:"ipNetworkId,omitempty"`
Mac *string `json:"mac,omitempty" yaml:"mac,omitempty"`
Nameservers *Nameservers `json:"nameservers,omitempty" yaml:"nameservers,omitempty"`
Netmask *string `json:"netmask,omitempty" yaml:"netmask,omitempty"`
Netmasklen *int `json:"netmasklen,omitempty" yaml:"netmasklen,omitempty"`
Networkid string `json:"networkid" yaml:"networkid"`
Networkname string `json:"networkname" yaml:"networkname"`
Portgroup *string `json:"portgroup,omitempty" yaml:"portgroup,omitempty"`
Routes *[]Route `json:"routes,omitempty" yaml:"routes,omitempty"`
Uuid *string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
Vlans *[]uint `json:"vlans,omitempty" yaml:"vlans,omitempty"`
}
NetworkInterface defines model for NetworkInterface.
type NetworkLoadBalancer ¶ added in v0.20.0
type NetworkLoadBalancer struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec NetworkLoadBalancerSpec `json:"spec" yaml:"spec"`
Status *Status `json:"status,omitempty" yaml:"status,omitempty"`
}
NetworkLoadBalancer defines model for NetworkLoadBalancer.
type NetworkLoadBalancerLabelSelector ¶ added in v0.20.0
type NetworkLoadBalancerLabelSelector struct {
MatchLabels map[string]string `json:"matchLabels" yaml:"matchLabels"`
}
NetworkLoadBalancerLabelSelector defines model for NetworkLoadBalancerLabelSelector.
type NetworkLoadBalancerListener ¶ added in v0.20.0
type NetworkLoadBalancerListener struct {
BackendPort int `json:"backendPort" yaml:"backendPort"`
BackendSelector NetworkLoadBalancerLabelSelector `json:"backendSelector" yaml:"backendSelector"`
Name string `json:"name" yaml:"name"`
Protocol string `json:"protocol" yaml:"protocol"`
SessionPersistence *NetworkLoadBalancerPersistence `json:"sessionPersistence,omitempty" yaml:"sessionPersistence,omitempty"`
VipPort int `json:"vipPort" yaml:"vipPort"`
}
NetworkLoadBalancerListener defines model for NetworkLoadBalancerListener.
type NetworkLoadBalancerPersistence ¶ added in v0.20.0
type NetworkLoadBalancerPersistence struct {
Enabled bool `json:"enabled" yaml:"enabled"`
}
NetworkLoadBalancerPersistence defines model for NetworkLoadBalancerPersistence.
type NetworkLoadBalancerSpec ¶ added in v0.20.0
type NetworkLoadBalancerSpec struct {
BindPublicIpAddress string `json:"bindPublicIpAddress" yaml:"bindPublicIpAddress"`
InternalVirtualNetwork string `json:"internalVirtualNetwork" yaml:"internalVirtualNetwork"`
Listeners []NetworkLoadBalancerListener `json:"listeners" yaml:"listeners"`
// RemoteCIDR Source CIDR allowed to access network load balancer forwarding. Empty means allow all.
RemoteCIDR string `json:"remoteCIDR" yaml:"remoteCIDR"`
}
NetworkLoadBalancerSpec defines model for NetworkLoadBalancerSpec.
type PasswordChangeRequest ¶ added in v0.25.0
type PasswordChangeRequest struct {
CurrentPassword *string `json:"currentPassword,omitempty" yaml:"currentPassword,omitempty"`
NewPassword string `json:"newPassword" yaml:"newPassword"`
}
PasswordChangeRequest defines model for PasswordChangeRequest.
type Permission ¶ added in v0.25.0
type Permission struct {
Resource string `json:"resource" yaml:"resource"`
Verbs []string `json:"verbs" yaml:"verbs"`
}
Permission defines model for Permission.
type RegisterHandlersOptions ¶ added in v0.13.0
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 ¶ added in v0.8.7
type ReplyMessage struct {
Message string `json:"message" yaml:"message"`
}
ReplyMessage defines model for ReplyMessage.
type Role ¶ added in v0.25.0
type Role struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec RoleSpec `json:"spec" yaml:"spec"`
}
Role defines model for Role.
type RoleAssignmentRequest ¶ added in v0.25.0
type RoleAssignmentRequest struct {
RoleName string `json:"roleName" yaml:"roleName"`
}
RoleAssignmentRequest defines model for RoleAssignmentRequest.
type RoleSpec ¶ added in v0.25.0
type RoleSpec struct {
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
Permissions []Permission `json:"permissions" yaml:"permissions"`
}
RoleSpec defines model for RoleSpec.
type Route ¶ added in v0.9.1
type Route struct {
To *string `json:"to,omitempty" yaml:"to,omitempty"`
Via *string `json:"via,omitempty" yaml:"via,omitempty"`
}
Route defines model for Route.
type Server ¶ added in v0.9.1
type Server struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec ServerSpec `json:"spec" yaml:"spec"`
Status *Status `json:"status,omitempty" yaml:"status,omitempty"`
}
Server defines model for Server.
func (*Server) NormalizeMMImageAlias ¶ added in v0.25.0
func (s *Server) NormalizeMMImageAlias()
NormalizeMMImageAlias preserves legacy behavior for callers that still set the deprecated osVariant field instead of mmImage.
type ServerAnsible ¶ added in v0.24.0
type ServerAnsible struct {
ExtraArgs *[]string `json:"extra-args,omitempty" yaml:"extra-args,omitempty"`
Inventory string `json:"inventory" yaml:"inventory"`
Playbook string `json:"playbook" yaml:"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 ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiAddUserRole(ctx echo.Context) error
ApiAddUserRole converts echo context to params.
func (*ServerInterfaceWrapper) ApiAuthLogin ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiAuthLogin(ctx echo.Context) error
ApiAuthLogin converts echo context to params.
func (*ServerInterfaceWrapper) ApiAuthLogout ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiAuthLogout(ctx echo.Context) error
ApiAuthLogout converts echo context to params.
func (*ServerInterfaceWrapper) ApiAuthMe ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiAuthMe(ctx echo.Context) error
ApiAuthMe converts echo context to params.
func (*ServerInterfaceWrapper) ApiAuthzCheck ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiAuthzCheck(ctx echo.Context) error
ApiAuthzCheck converts echo context to params.
func (*ServerInterfaceWrapper) ApiChangeUserPassword ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiChangeUserPassword(ctx echo.Context) error
ApiChangeUserPassword converts echo context to params.
func (*ServerInterfaceWrapper) ApiConsoleServerById ¶ added in v0.15.1
func (w *ServerInterfaceWrapper) ApiConsoleServerById(ctx echo.Context) error
ApiConsoleServerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiCreateGateway ¶ added in v0.16.0
func (w *ServerInterfaceWrapper) ApiCreateGateway(ctx echo.Context) error
ApiCreateGateway converts echo context to params.
func (*ServerInterfaceWrapper) ApiCreateImage ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiCreateImage(ctx echo.Context) error
ApiCreateImage converts echo context to params.
func (*ServerInterfaceWrapper) ApiCreateLoadBalancer ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiCreateLoadBalancer(ctx echo.Context) error
ApiCreateLoadBalancer converts echo context to params.
func (*ServerInterfaceWrapper) ApiCreateNetwork ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiCreateNetwork(ctx echo.Context) error
ApiCreateNetwork converts echo context to params.
func (*ServerInterfaceWrapper) ApiCreateNetworkLoadBalancer ¶ added in v0.20.0
func (w *ServerInterfaceWrapper) ApiCreateNetworkLoadBalancer(ctx echo.Context) error
ApiCreateNetworkLoadBalancer converts echo context to params.
func (*ServerInterfaceWrapper) ApiCreateServer ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiCreateServer(ctx echo.Context) error
ApiCreateServer converts echo context to params.
func (*ServerInterfaceWrapper) ApiCreateUser ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiCreateUser(ctx echo.Context) error
ApiCreateUser converts echo context to params.
func (*ServerInterfaceWrapper) ApiCreateUserApiKey ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiCreateUserApiKey(ctx echo.Context) error
ApiCreateUserApiKey converts echo context to params.
func (*ServerInterfaceWrapper) ApiCreateVolume ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiCreateVolume(ctx echo.Context) error
ApiCreateVolume converts echo context to params.
func (*ServerInterfaceWrapper) ApiCreateVpnGateway ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiCreateVpnGateway(ctx echo.Context) error
ApiCreateVpnGateway converts echo context to params.
func (*ServerInterfaceWrapper) ApiDeleteGatewayById ¶ added in v0.16.0
func (w *ServerInterfaceWrapper) ApiDeleteGatewayById(ctx echo.Context) error
ApiDeleteGatewayById converts echo context to params.
func (*ServerInterfaceWrapper) ApiDeleteImageById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiDeleteImageById(ctx echo.Context) error
ApiDeleteImageById converts echo context to params.
func (*ServerInterfaceWrapper) ApiDeleteLoadBalancerById ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiDeleteLoadBalancerById(ctx echo.Context) error
ApiDeleteLoadBalancerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiDeleteNetworkById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiDeleteNetworkById(ctx echo.Context) error
ApiDeleteNetworkById converts echo context to params.
func (*ServerInterfaceWrapper) ApiDeleteNetworkLoadBalancerById ¶ added in v0.20.0
func (w *ServerInterfaceWrapper) ApiDeleteNetworkLoadBalancerById(ctx echo.Context) error
ApiDeleteNetworkLoadBalancerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiDeleteServerById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiDeleteServerById(ctx echo.Context) error
ApiDeleteServerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiDeleteUserApiKey ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiDeleteUserApiKey(ctx echo.Context) error
ApiDeleteUserApiKey converts echo context to params.
func (*ServerInterfaceWrapper) ApiDeleteUserById ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiDeleteUserById(ctx echo.Context) error
ApiDeleteUserById converts echo context to params.
func (*ServerInterfaceWrapper) ApiDeleteUserRole ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiDeleteUserRole(ctx echo.Context) error
ApiDeleteUserRole converts echo context to params.
func (*ServerInterfaceWrapper) ApiDeleteVolumeById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiDeleteVolumeById(ctx echo.Context) error
ApiDeleteVolumeById converts echo context to params.
func (*ServerInterfaceWrapper) ApiDeleteVpnGatewayById ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiDeleteVpnGatewayById(ctx echo.Context) error
ApiDeleteVpnGatewayById converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetGatewayById ¶ added in v0.16.0
func (w *ServerInterfaceWrapper) ApiGetGatewayById(ctx echo.Context) error
ApiGetGatewayById converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetGatewayCertById ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiGetGatewayCertById(ctx echo.Context) error
ApiGetGatewayCertById converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetGateways ¶ added in v0.16.0
func (w *ServerInterfaceWrapper) ApiGetGateways(ctx echo.Context) error
ApiGetGateways converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetImageById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiGetImageById(ctx echo.Context) error
ApiGetImageById converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetImages ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiGetImages(ctx echo.Context) error
ApiGetImages converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetIpAddressesByNetwork ¶ added in v0.11.4
func (w *ServerInterfaceWrapper) ApiGetIpAddressesByNetwork(ctx echo.Context) error
ApiGetIpAddressesByNetwork converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetLoadBalancerById ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiGetLoadBalancerById(ctx echo.Context) error
ApiGetLoadBalancerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetLoadBalancers ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiGetLoadBalancers(ctx echo.Context) error
ApiGetLoadBalancers converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetMarmotCluster ¶ added in v0.12.0
func (w *ServerInterfaceWrapper) ApiGetMarmotCluster(ctx echo.Context) error
ApiGetMarmotCluster converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetMarmotStatus ¶ added in v0.11.6
func (w *ServerInterfaceWrapper) ApiGetMarmotStatus(ctx echo.Context) error
ApiGetMarmotStatus converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetNetworkById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiGetNetworkById(ctx echo.Context) error
ApiGetNetworkById converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetNetworkIpNetworks ¶ added in v0.11.4
func (w *ServerInterfaceWrapper) ApiGetNetworkIpNetworks(ctx echo.Context) error
ApiGetNetworkIpNetworks converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetNetworkLoadBalancerById ¶ added in v0.20.0
func (w *ServerInterfaceWrapper) ApiGetNetworkLoadBalancerById(ctx echo.Context) error
ApiGetNetworkLoadBalancerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetNetworkLoadBalancers ¶ added in v0.20.0
func (w *ServerInterfaceWrapper) ApiGetNetworkLoadBalancers(ctx echo.Context) error
ApiGetNetworkLoadBalancers converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetNetworks ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiGetNetworks(ctx echo.Context) error
ApiGetNetworks converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetRoleByName ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiGetRoleByName(ctx echo.Context) error
ApiGetRoleByName converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetServerById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiGetServerById(ctx echo.Context) error
ApiGetServerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetServers ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiGetServers(ctx echo.Context) error
ApiGetServers converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetUserById ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiGetUserById(ctx echo.Context) error
ApiGetUserById converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetVersion ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiGetVersion(ctx echo.Context) error
ApiGetVersion converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetVpnGatewayById ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiGetVpnGatewayById(ctx echo.Context) error
ApiGetVpnGatewayById converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetVpnGatewayCertById ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiGetVpnGatewayCertById(ctx echo.Context) error
ApiGetVpnGatewayCertById converts echo context to params.
func (*ServerInterfaceWrapper) ApiGetVpnGateways ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiGetVpnGateways(ctx echo.Context) error
ApiGetVpnGateways converts echo context to params.
func (*ServerInterfaceWrapper) ApiListIpNetworks ¶ added in v0.11.4
func (w *ServerInterfaceWrapper) ApiListIpNetworks(ctx echo.Context) error
ApiListIpNetworks converts echo context to params.
func (*ServerInterfaceWrapper) ApiListRoles ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiListRoles(ctx echo.Context) error
ApiListRoles converts echo context to params.
func (*ServerInterfaceWrapper) ApiListUserApiKeys ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiListUserApiKeys(ctx echo.Context) error
ApiListUserApiKeys converts echo context to params.
func (*ServerInterfaceWrapper) ApiListUserRoles ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiListUserRoles(ctx echo.Context) error
ApiListUserRoles converts echo context to params.
func (*ServerInterfaceWrapper) ApiListUsers ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiListUsers(ctx echo.Context) error
ApiListUsers converts echo context to params.
func (*ServerInterfaceWrapper) ApiListVolumes ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiListVolumes(ctx echo.Context) error
ApiListVolumes converts echo context to params.
func (*ServerInterfaceWrapper) ApiLockUserById ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiLockUserById(ctx echo.Context) error
ApiLockUserById converts echo context to params.
func (*ServerInterfaceWrapper) ApiMakeImageEntryFromRunningVMById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiMakeImageEntryFromRunningVMById(ctx echo.Context) error
ApiMakeImageEntryFromRunningVMById converts echo context to params.
func (*ServerInterfaceWrapper) ApiReplyPing ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiReplyPing(ctx echo.Context) error
ApiReplyPing converts echo context to params.
func (*ServerInterfaceWrapper) ApiShowVolumeById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiShowVolumeById(ctx echo.Context) error
ApiShowVolumeById converts echo context to params.
func (*ServerInterfaceWrapper) ApiStartServerById ¶ added in v0.11.6
func (w *ServerInterfaceWrapper) ApiStartServerById(ctx echo.Context) error
ApiStartServerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiStopServerById ¶ added in v0.11.6
func (w *ServerInterfaceWrapper) ApiStopServerById(ctx echo.Context) error
ApiStopServerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiUnlockUserById ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiUnlockUserById(ctx echo.Context) error
ApiUnlockUserById converts echo context to params.
func (*ServerInterfaceWrapper) ApiUpdateGatewayById ¶ added in v0.16.0
func (w *ServerInterfaceWrapper) ApiUpdateGatewayById(ctx echo.Context) error
ApiUpdateGatewayById converts echo context to params.
func (*ServerInterfaceWrapper) ApiUpdateImageById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiUpdateImageById(ctx echo.Context) error
ApiUpdateImageById converts echo context to params.
func (*ServerInterfaceWrapper) ApiUpdateLoadBalancerById ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiUpdateLoadBalancerById(ctx echo.Context) error
ApiUpdateLoadBalancerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiUpdateNetworkById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiUpdateNetworkById(ctx echo.Context) error
ApiUpdateNetworkById converts echo context to params.
func (*ServerInterfaceWrapper) ApiUpdateNetworkLoadBalancerById ¶ added in v0.20.0
func (w *ServerInterfaceWrapper) ApiUpdateNetworkLoadBalancerById(ctx echo.Context) error
ApiUpdateNetworkLoadBalancerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiUpdateServerById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiUpdateServerById(ctx echo.Context) error
ApiUpdateServerById converts echo context to params.
func (*ServerInterfaceWrapper) ApiUpdateUserById ¶ added in v0.25.0
func (w *ServerInterfaceWrapper) ApiUpdateUserById(ctx echo.Context) error
ApiUpdateUserById converts echo context to params.
func (*ServerInterfaceWrapper) ApiUpdateVolumeById ¶ added in v0.11.0
func (w *ServerInterfaceWrapper) ApiUpdateVolumeById(ctx echo.Context) error
ApiUpdateVolumeById converts echo context to params.
func (*ServerInterfaceWrapper) ApiUpdateVpnGatewayById ¶ added in v0.19.3
func (w *ServerInterfaceWrapper) ApiUpdateVpnGatewayById(ctx echo.Context) error
ApiUpdateVpnGatewayById converts echo context to params.
type ServerSpec ¶ added in v0.11.0
type ServerSpec struct {
Ansible *ServerAnsible `json:"ansible,omitempty" yaml:"ansible,omitempty"`
Auth *Auth `json:"auth,omitempty" yaml:"auth,omitempty"`
BootVolume *Volume `json:"bootVolume,omitempty" yaml:"bootVolume,omitempty"`
Cpu *int `json:"cpu,omitempty" yaml:"cpu,omitempty"`
Memory *int `json:"memory,omitempty" yaml:"memory,omitempty"`
MmImage *string `json:"mmImage,omitempty" yaml:"mmImage,omitempty"`
NetworkInterface *[]NetworkInterface `json:"networkInterface,omitempty" yaml:"networkInterface,omitempty"`
OsLv *string `json:"osLv,omitempty" yaml:"osLv,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
OsVariant *string `json:"osVariant,omitempty" yaml:"osVariant,omitempty"`
OsVg *string `json:"osVg,omitempty" yaml:"osVg,omitempty"`
Storage *[]Volume `json:"storage,omitempty" yaml:"storage,omitempty"`
}
ServerSpec defines model for ServerSpec.
type Status ¶ added in v0.11.0
type Status struct {
Console *string `json:"console,omitempty" yaml:"console,omitempty"`
CreationTimeStamp *time.Time `json:"creationTimeStamp,omitempty" yaml:"creationTimeStamp,omitempty"`
DeletionTimeStamp *time.Time `json:"deletionTimeStamp,omitempty" yaml:"deletionTimeStamp,omitempty"`
LastUpdateTimeStamp *time.Time `json:"lastUpdateTimeStamp,omitempty" yaml:"lastUpdateTimeStamp,omitempty"`
Message *string `json:"message,omitempty" yaml:"message,omitempty"`
Status *string `json:"status,omitempty" yaml:"status,omitempty"`
StatusCode int `json:"statusCode" yaml:"statusCode"`
}
Status defines model for Status.
type Success ¶ added in v0.9.1
type Success struct {
Id string `json:"id" yaml:"id"`
Message *string `json:"message,omitempty" yaml:"message,omitempty"`
}
Success defines model for Success.
type User ¶ added in v0.25.0
type User struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec UserSpec `json:"spec" yaml:"spec"`
Status *UserStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
User defines model for User.
type UserSpec ¶ added in v0.25.0
type UserSpec struct {
Comment *string `json:"comment,omitempty" yaml:"comment,omitempty"`
Email *string `json:"email,omitempty" yaml:"email,omitempty"`
Enabled bool `json:"enabled" yaml:"enabled"`
MustChangePassword *bool `json:"mustChangePassword,omitempty" yaml:"mustChangePassword,omitempty"`
PasswordHash *string `json:"passwordHash,omitempty" yaml:"passwordHash,omitempty"`
Roles *[]string `json:"roles,omitempty" yaml:"roles,omitempty"`
}
UserSpec defines model for UserSpec.
type UserStatus ¶ added in v0.25.0
type UserStatus struct {
ApiKeyCount *int32 `json:"apiKeyCount,omitempty" yaml:"apiKeyCount,omitempty"`
LastLoginAt *time.Time `json:"lastLoginAt,omitempty" yaml:"lastLoginAt,omitempty"`
LockedAt *time.Time `json:"lockedAt,omitempty" yaml:"lockedAt,omitempty"`
LockedUntil *time.Time `json:"lockedUntil,omitempty" yaml:"lockedUntil,omitempty"`
PasswordUpdatedAt *time.Time `json:"passwordUpdatedAt,omitempty" yaml:"passwordUpdatedAt,omitempty"`
}
UserStatus defines model for UserStatus.
type Version ¶
type Version struct {
ClientVersion string `json:"clientVersion" yaml:"clientVersion"`
ServerVersion *string `json:"serverVersion,omitempty" yaml:"serverVersion,omitempty"`
}
Version defines model for Version.
type VirtualNetwork ¶ added in v0.11.0
type VirtualNetwork struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec VirtualNetworkSpec `json:"spec" yaml:"spec"`
Status *Status `json:"status,omitempty" yaml:"status,omitempty"`
}
VirtualNetwork defines model for VirtualNetwork.
type VirtualNetworkSpec ¶ added in v0.11.0
type VirtualNetworkSpec struct {
BridgeName *string `json:"bridgeName,omitempty" yaml:"bridgeName,omitempty"`
Dhcp *bool `json:"dhcp,omitempty" yaml:"dhcp,omitempty"`
DhcpEndAddress *string `json:"dhcpEndAddress,omitempty" yaml:"dhcpEndAddress,omitempty"`
DhcpStartAddress *string `json:"dhcpStartAddress,omitempty" yaml:"dhcpStartAddress,omitempty"`
ForwardMode *string `json:"forwardMode,omitempty" yaml:"forwardMode,omitempty"`
IPNetworkAddress *string `json:"iPNetworkAddress,omitempty" yaml:"iPNetworkAddress,omitempty"`
IpAddress *string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"`
IpNetworkId *string `json:"ipNetworkId,omitempty" yaml:"ipNetworkId,omitempty"`
MacAddress *string `json:"macAddress,omitempty" yaml:"macAddress,omitempty"`
Nat *bool `json:"nat,omitempty" yaml:"nat,omitempty"`
Netmask *string `json:"netmask,omitempty" yaml:"netmask,omitempty"`
// OverlayMode Overlay mode for multi-node networks: 'none' (default), 'geneve' (OVN-managed), or 'vxlan' (deprecated).
OverlayMode *VirtualNetworkSpecOverlayMode `json:"overlayMode,omitempty" yaml:"overlayMode,omitempty"`
// PeerPolicy Policy for peer management: 'auto' or 'manual'. This field is ignored when OVN manages peers.
PeerPolicy *VirtualNetworkSpecPeerPolicy `json:"peerPolicy,omitempty" yaml:"peerPolicy,omitempty"`
Stp *bool `json:"stp,omitempty" yaml:"stp,omitempty"`
// UnderlayInterface Interface name for underlay network used by overlay tunnels.
UnderlayInterface *string `json:"underlayInterface,omitempty" yaml:"underlayInterface,omitempty"`
// Vni Overlay VNI (0-16777215) used by Geneve/VXLAN.
Vni *int `json:"vni,omitempty" yaml:"vni,omitempty"`
// VpnAccess Enable VPN route injection for servers on this network.
VpnAccess *bool `json:"vpnAccess,omitempty" yaml:"vpnAccess,omitempty"`
}
VirtualNetworkSpec defines model for VirtualNetworkSpec.
type VirtualNetworkSpecOverlayMode ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (e VirtualNetworkSpecOverlayMode) Valid() bool
Valid indicates whether the value is a known member of the VirtualNetworkSpecOverlayMode enum.
type VirtualNetworkSpecPeerPolicy ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (e VirtualNetworkSpecPeerPolicy) Valid() bool
Valid indicates whether the value is a known member of the VirtualNetworkSpecPeerPolicy enum.
type VolSpec ¶ added in v0.11.0
type VolSpec struct {
Iscsi *bool `json:"iscsi,omitempty" yaml:"iscsi,omitempty"`
IscsiTargetIqn *string `json:"iscsiTargetIqn,omitempty" yaml:"iscsiTargetIqn,omitempty"`
Kind *string `json:"kind,omitempty" yaml:"kind,omitempty"`
LogicalVolume *string `json:"logicalVolume,omitempty" yaml:"logicalVolume,omitempty"`
OsVariant *string `json:"osVariant,omitempty" yaml:"osVariant,omitempty"`
Path *string `json:"path,omitempty" yaml:"path,omitempty"`
Persistent *bool `json:"persistent,omitempty" yaml:"persistent,omitempty"`
Size *int `json:"size,omitempty" yaml:"size,omitempty"`
Type *string `json:"type,omitempty" yaml:"type,omitempty"`
VolumeGroup *string `json:"volumeGroup,omitempty" yaml:"volumeGroup,omitempty"`
}
VolSpec defines model for VolSpec.
type Volume ¶ added in v0.9.1
type Volume struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec VolSpec `json:"spec" yaml:"spec"`
Status *Status `json:"status,omitempty" yaml:"status,omitempty"`
}
Volume defines model for Volume.
type VpnGateway ¶ added in v0.17.0
type VpnGateway struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
Spec VpnGatewaySpec `json:"spec" yaml:"spec"`
Status *Status `json:"status,omitempty" yaml:"status,omitempty"`
}
VpnGateway defines model for VpnGateway.
type VpnGatewaySpec ¶ added in v0.17.0
type VpnGatewaySpec struct {
BindPublicIpAddress string `json:"bindPublicIpAddress" yaml:"bindPublicIpAddress"`
InternalVirtualNetwork string `json:"internalVirtualNetwork" yaml:"internalVirtualNetwork"`
// RemoteCIDRs Source CIDR list allowed to access vpn gateway. Empty means allow all.
RemoteCIDRs *[]string `json:"remoteCIDRs,omitempty" yaml:"remoteCIDRs,omitempty"`
// Routes Static routes applied to public NIC.
Routes *[]Route `json:"routes,omitempty" yaml:"routes,omitempty"`
}
VpnGatewaySpec defines model for VpnGatewaySpec.