Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeProfile ¶
type KubeProfile struct { Id string `json:"id" valid:"required"` KubernetesVersion string `json:"kubernetes_version" valid:"required"` MasterProfile NodeProfile `json:"masterProfile" valid:"required"` NodesProfile NodeProfile `json:"nodesProfile" valid:"required"` MasterNodeCount int `json:"master_node_count" valid:"required"` CustomFiles string `json:"customFiles" valid:"optional"` RBACEnabled bool `json:"rbacEnabled"` }
type KubeProfileHandler ¶
type KubeProfileHandler struct {
// contains filtered or unexported fields
}
func NewKubeProfileEndpoint ¶
func NewKubeProfileEndpoint(prefix string, storage storage.Interface) *KubeProfileHandler
func (*KubeProfileHandler) CreateProfile ¶
func (h *KubeProfileHandler) CreateProfile(w http.ResponseWriter, r *http.Request)
func (*KubeProfileHandler) GetProfile ¶
func (h *KubeProfileHandler) GetProfile(w http.ResponseWriter, r *http.Request)
func (*KubeProfileHandler) GetProfiles ¶
func (h *KubeProfileHandler) GetProfiles(w http.ResponseWriter, r *http.Request)
type KubeProfileService ¶
type KubeProfileService struct {
// contains filtered or unexported fields
}
func NewKubeProfileService ¶
func NewKubeProfileService(prefix string, s storage.Interface) *KubeProfileService
func (*KubeProfileService) Create ¶
func (s *KubeProfileService) Create(ctx context.Context, profile *KubeProfile) error
func (*KubeProfileService) Get ¶
func (s *KubeProfileService) Get(ctx context.Context, profileId string) (*KubeProfile, error)
func (*KubeProfileService) GetAll ¶
func (s *KubeProfileService) GetAll(ctx context.Context) ([]KubeProfile, error)
type NodeProfile ¶
type NodeProfile struct { ID string `json:"id" valid:"required"` Size *NodeSize `json:"size" valid:"required"` Image string `json:"image" valid:"required"` Provider provider.Name `json:"provider" valid:"in(aws|digitalocean|packet|gce|openstack)"` // AVX256, SSE4, MMX, AES, SR-IOV etc. Capabilities []string `json:"capabilities" valid:"optional"` }
type NodeProfileHandler ¶
type NodeProfileHandler struct {
// contains filtered or unexported fields
}
func (*NodeProfileHandler) CreateProfile ¶
func (h *NodeProfileHandler) CreateProfile(w http.ResponseWriter, r *http.Request)
func (*NodeProfileHandler) GetProfile ¶
func (h *NodeProfileHandler) GetProfile(w http.ResponseWriter, r *http.Request)
func (*NodeProfileHandler) GetProfiles ¶
func (h *NodeProfileHandler) GetProfiles(w http.ResponseWriter, r *http.Request)
type NodeProfileService ¶
type NodeProfileService struct {
// contains filtered or unexported fields
}
func NewNodeProfileService ¶
func NewNodeProfileService(prefix string, storage storage.Interface) *NodeProfileService
func (*NodeProfileService) Create ¶
func (s *NodeProfileService) Create(ctx context.Context, profile *NodeProfile) error
func (*NodeProfileService) Get ¶
func (s *NodeProfileService) Get(ctx context.Context, profileId string) (*NodeProfile, error)
func (*NodeProfileService) GetAll ¶
func (s *NodeProfileService) GetAll(ctx context.Context) ([]NodeProfile, error)
Click to show internal directories.
Click to hide internal directories.