mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
Refactor routing logic (Chi can be a pain when you're managing large sets of routes, but its one of the better options when considering a potential gRPC future)
Upgrade API Generation to fully support OAS3.1
Update swagger interface to RapiDoc - the old swagger interface doesnt support OAS3.1 yet
Docs are now embedded as part of the UI - once logged in they pick up the cookies and org id from what gets set by the UI, but you can override it
Other updates include better portability of the db-studio
Signed-off-by: allanice001 <allanice001@gmail.com>
59 lines
1.9 KiB
Go
59 lines
1.9 KiB
Go
package dto
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type ClusterResponse struct {
|
|
ID uuid.UUID `json:"id"`
|
|
Name string `json:"name"`
|
|
CaptainDomain *DomainResponse `json:"captain_domain,omitempty"`
|
|
ControlPlaneRecordSet *RecordSetResponse `json:"control_plane_record_set,omitempty"`
|
|
AppsLoadBalancer *LoadBalancerResponse `json:"apps_load_balancer,omitempty"`
|
|
GlueOpsLoadBalancer *LoadBalancerResponse `json:"glueops_load_balancer,omitempty"`
|
|
BastionServer *ServerResponse `json:"bastion_server,omitempty"`
|
|
Provider string `json:"provider"`
|
|
Region string `json:"region"`
|
|
Status string `json:"status"`
|
|
LastError string `json:"last_error"`
|
|
RandomToken string `json:"random_token"`
|
|
CertificateKey string `json:"certificate_key"`
|
|
NodePools []NodePoolResponse `json:"node_pools,omitempty"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type CreateClusterRequest struct {
|
|
Name string `json:"name"`
|
|
Provider string `json:"provider"`
|
|
Region string `json:"region"`
|
|
}
|
|
|
|
type UpdateClusterRequest struct {
|
|
Name *string `json:"name,omitempty"`
|
|
Provider *string `json:"provider,omitempty"`
|
|
Region *string `json:"region,omitempty"`
|
|
}
|
|
|
|
type AttachCaptainDomainRequest struct {
|
|
DomainID uuid.UUID `json:"domain_id"`
|
|
}
|
|
|
|
type AttachRecordSetRequest struct {
|
|
RecordSetID uuid.UUID `json:"record_set_id"`
|
|
}
|
|
|
|
type AttachLoadBalancerRequest struct {
|
|
LoadBalancerID uuid.UUID `json:"load_balancer_id"`
|
|
}
|
|
|
|
type AttachBastionRequest struct {
|
|
ServerID uuid.UUID `json:"server_id"`
|
|
}
|
|
|
|
type SetKubeconfigRequest struct {
|
|
Kubeconfig string `json:"kubeconfig"`
|
|
}
|