Documentation ¶
Index ¶
- func ConfigHandler(c *gin.Context)
- func DebugMode() bool
- func GetAuthMiddleware() *jwt.GinJWTMiddleware
- func GetUserMail(c *gin.Context) string
- func GetUserName(c *gin.Context) string
- func ValidateIntInput(maxValue string, input string) error
- type AdminList
- type ApiResponse
- type Bucket
- type BucketListResponse
- type CreateLogseneAppCommand
- type CreateSnapshotCommand
- type DDCBilling
- type DDCBillingRow
- type EditBillingDataCommand
- type EditQuotasCommand
- type EditSematextPlanCommand
- type FeatureToggleResponse
- type FixVolumeCommand
- type GrowVolumeCommand
- type Instance
- type InstanceListResponse
- type NewProjectCommand
- type NewS3BucketCommand
- type NewS3UserCommand
- type NewServiceAccountCommand
- type NewTestProjectCommand
- type NewVolumeApiResponse
- type NewVolumeCommand
- type NewVolumeResponse
- type ProjectName
- type S3CredentialsResponse
- type SematextAppList
- type SematextLogsenePlan
- type Snapshot
- type SnapshotApiResponse
- type Volume
- type WorkflowCommand
- type WorkflowExecutionProgress
- type WorkflowJob
- type WorkflowJobStatus
- type WorkflowKeyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigHandler ¶ added in v1.0.9
func GetAuthMiddleware ¶
func GetAuthMiddleware() *jwt.GinJWTMiddleware
GetAuthMiddleware returns a gin middleware for JWT with cookie based auth
func GetUserMail ¶ added in v1.2.0
GetUserMail returns the users mail address based of the gin.Context
func GetUserName ¶
GetUserName returns the username based of the gin.Context
func ValidateIntInput ¶
ValidateIntInput checks if a the value is bigger than the specified maxValue
Types ¶
type ApiResponse ¶ added in v1.0.9
type ApiResponse struct {
Message string `json:"message"`
}
type BucketListResponse ¶ added in v1.1.6
type BucketListResponse struct {
Buckets []Bucket `json:"buckets"`
}
type CreateLogseneAppCommand ¶ added in v1.2.0
type CreateLogseneAppCommand struct { AppName string `json:"appName"` DiscountCode string `json:"discountCode"` EditSematextPlanCommand EditBillingDataCommand }
type CreateSnapshotCommand ¶ added in v1.3.0
type DDCBilling ¶ added in v1.0.9
type DDCBilling struct { Rows []DDCBillingRow `json:"rows"` CSV string `json:"csv"` }
type DDCBillingRow ¶ added in v1.1.0
type DDCBillingRow struct { Sender string `json:"sender"` Text string `json:"text"` Art string `json:"art"` Project string `json:"project"` Host string `json:"host"` Backup bool `json:"backup"` ReceptionAssignment string `json:"receptionAssignment"` OrderReception string `json:"orderReception"` PspElement string `json:"pspElement"` TotalCPU float64 `json:"totalCpu"` TotalMemory float64 `json:"totalMemory"` TotalStorage float64 `json:"totalStorage"` Total float64 `json:"total"` }
type EditBillingDataCommand ¶ added in v1.0.9
type EditBillingDataCommand struct { ProjectName Billing string `json:"billing"` }
type EditQuotasCommand ¶ added in v1.0.9
type EditQuotasCommand struct { ProjectName CPU string `json:"cpu"` Memory string `json:"memory"` }
type EditSematextPlanCommand ¶ added in v1.2.0
type FeatureToggleResponse ¶ added in v1.0.9
type FixVolumeCommand ¶ added in v1.0.9
type FixVolumeCommand struct {
ProjectName
}
type GrowVolumeCommand ¶ added in v1.0.9
type GrowVolumeCommand struct { ProjectName NewSize string `json:"newSize"` PvName string `json:"pvName"` }
type Instance ¶ added in v1.2.5
type Instance struct { Name string `json:"name"` InstanceId string `json:"instanceId"` InstanceType string `json:"instanceType"` ImageId string `json:"imageId"` ImageName string `json:"imageName"` LaunchTime *time.Time `json:"launchTime"` State string `json:"state"` PrivateIpAddress string `json:"privateIpAddress"` Account string `json:"account"` Snapshots []Snapshot `json:"snapshots"` Volumes []Volume `json:"volumes"` Tags []*ec2.Tag `json:"tags"` }
type InstanceListResponse ¶ added in v1.2.5
type InstanceListResponse struct {
Instances []Instance `json:"instances"`
}
type NewProjectCommand ¶ added in v1.0.9
type NewProjectCommand struct { ProjectName Billing string `json:"billing"` MegaId string `json:"megaId"` }
type NewS3BucketCommand ¶ added in v1.1.6
type NewS3BucketCommand struct { ProjectName BucketName string `json:"bucketname"` Billing string `json:"billing"` Stage string `json:"stage"` }
type NewS3UserCommand ¶ added in v1.1.6
type NewServiceAccountCommand ¶ added in v1.0.9
type NewServiceAccountCommand struct { ProjectName ServiceAccount string `json:"serviceAccount"` }
type NewTestProjectCommand ¶ added in v1.0.9
type NewTestProjectCommand struct {
ProjectName
}
type NewVolumeApiResponse ¶ added in v1.3.2
type NewVolumeApiResponse struct { Message string `json:"message"` Data NewVolumeResponse `json:"data"` }
type NewVolumeCommand ¶ added in v1.0.9
type NewVolumeCommand struct { ProjectName Size string `json:"size"` PvcName string `json:"pvcName"` Mode string `json:"mode"` Technology string `json:"technology"` }
type NewVolumeResponse ¶ added in v1.3.2
type ProjectName ¶ added in v1.0.9
type ProjectName struct {
Project string `json:"project"`
}
type S3CredentialsResponse ¶ added in v1.1.6
type SematextAppList ¶ added in v1.2.0
type SematextLogsenePlan ¶ added in v1.2.0
type SnapshotApiResponse ¶ added in v1.3.0
type WorkflowCommand ¶ added in v1.3.2
type WorkflowCommand struct {
UserInputValues []WorkflowKeyValue `json:"userInputValues"`
}
type WorkflowExecutionProgress ¶ added in v1.3.2
type WorkflowJob ¶ added in v1.3.2
type WorkflowJob struct { JobId int `json:"jobId"` JobStatus WorkflowJobStatus `json:"jobStatus"` }
type WorkflowJobStatus ¶ added in v1.3.2
type WorkflowJobStatus struct { JobStatus string `json:"jobStatus"` ErrorMessage string `json:"errorMessage"` ReturnParameters []WorkflowKeyValue `json:"returnParameters"` WorkflowExecutionProgress WorkflowExecutionProgress `json:"workflow-execution-progress"` }
type WorkflowKeyValue ¶ added in v1.3.2
Click to show internal directories.
Click to hide internal directories.