Versions in this module Expand all Collapse all v0 v0.1.3 May 16, 2022 Changes in this version + var ClusterResourceTypes = []string + var ErrEcsListNotSupported = errors.New("cloud not supported ecs list") + var ErrEcserPanic = errors.New("ecs init panic") + var ManagementResourceTypes = []string + var ProjectResourceTypes = []string + func GetClient(ctx *cli.Context) (*cliclient.MasterClient, error) + func GetHarvesterClient(host string, token string) (*harvclient.Clientset, error) + func GetKubernetesClient(host string, token string) (*k8s.Clientset, error) + func GetResourceType(c *cliclient.MasterClient, resource string) (string, error) + func Lookup(c *cliclient.MasterClient, name string, types ...string) (*ntypes.Resource, error) + func MustPVCTemplatesToString(pvcs []k8sv1.PersistentVolumeClaim) string + func NewTrue() *bool + func PVCTemplatesToString(pvcs []k8sv1.PersistentVolumeClaim) (string, error) + func PointerToUint(i uint) *uint + func RandomID() string + func RandomLetters(n int) string + func RandomName() string + func SimpleFormat(values [][]string) (string, string) + func SplitOnColon(s string) []string + type AliEcs struct + func (ecs *AliEcs) ActionEcs(ctx context.Context, req *pbecs.ActionReq) (resp *pbecs.ActionResp, err error) + func (ecs *AliEcs) CreateEcs(ctx context.Context, req *pbecs.CreateEcsReq) (*pbecs.CreateEcsResp, error) + func (ecs *AliEcs) DeleteEcs(ctx context.Context, req *pbecs.DeleteEcsReq) (*pbecs.DeleteEcsResp, error) + func (ecs *AliEcs) ListDetail(ctx context.Context, req *pbecs.ListDetailReq) (*pbecs.ListDetailResp, error) + func (ecs *AliEcs) UpdateEcs(ctx context.Context, req *pbecs.UpdateEcsReq) (*pbecs.UpdateEcsResp, error) + type Config struct + Host string + Port int + Token string + type Ecser interface + ActionEcs func(ctx context.Context, req *pbecs.ActionReq) (resp *pbecs.ActionResp, err error) + CreateEcs func(ctx context.Context, req *pbecs.CreateEcsReq) (resp *pbecs.CreateEcsResp, err error) + DeleteEcs func(ctx context.Context, req *pbecs.DeleteEcsReq) (resp *pbecs.DeleteEcsResp, err error) + ListDetail func(ctx context.Context, req *pbecs.ListDetailReq) (resp *pbecs.ListDetailResp, err error) + UpdateEcs func(ctx context.Context, req *pbecs.UpdateEcsReq) (resp *pbecs.UpdateEcsResp, err error) + func NewEcsClient(provider pbtenant.CloudProvider, region tenanter.Region, ...) (ecser Ecser, err error) + type HarVMer struct + func (h *HarVMer) ActionEcs(ctx context.Context, req *pbecs.ActionReq) (resp *pbecs.ActionResp, err error) + func (h *HarVMer) CreateEcs(ctx context.Context, req *pbecs.CreateEcsReq) (resp *pbecs.CreateEcsResp, err error) + func (h *HarVMer) DeleteEcs(ctx context.Context, req *pbecs.DeleteEcsReq) (resp *pbecs.DeleteEcsResp, err error) + func (h *HarVMer) ListDetail(ctx context.Context, req *pbecs.ListDetailReq) (resp *pbecs.ListDetailResp, err error) + func (h *HarVMer) UpdateEcs(ctx context.Context, req *pbecs.UpdateEcsReq) (resp *pbecs.UpdateEcsResp, err error) + type HuaweiEcs struct + func (ecs *HuaweiEcs) ActionEcs(ctx context.Context, req *pbecs.ActionReq) (resp *pbecs.ActionResp, err error) + func (ecs *HuaweiEcs) CreateEcs(ctx context.Context, req *pbecs.CreateEcsReq) (*pbecs.CreateEcsResp, error) + func (ecs *HuaweiEcs) DeleteEcs(ctx context.Context, req *pbecs.DeleteEcsReq) (*pbecs.DeleteEcsResp, error) + func (ecs *HuaweiEcs) ListDetail(ctx context.Context, req *pbecs.ListDetailReq) (*pbecs.ListDetailResp, error) + func (ecs *HuaweiEcs) UpdateEcs(ctx context.Context, req *pbecs.UpdateEcsReq) (*pbecs.UpdateEcsResp, error) + type MemberData struct + AccessType string + MemberType string + Name string + type RoleTemplate struct + Description string + ID string + Name string + type RoleTemplateBinding struct + Created string + ID string + Role string + User string + type TencentCvm struct + func (ecs *TencentCvm) ActionEcs(ctx context.Context, req *pbecs.ActionReq) (resp *pbecs.ActionResp, err error) + func (ecs *TencentCvm) CreateEcs(ctx context.Context, req *pbecs.CreateEcsReq) (*pbecs.CreateEcsResp, error) + func (ecs *TencentCvm) DeleteEcs(ctx context.Context, req *pbecs.DeleteEcsReq) (*pbecs.DeleteEcsResp, error) + func (ecs *TencentCvm) ListDetail(ctx context.Context, req *pbecs.ListDetailReq) (*pbecs.ListDetailResp, error) + func (ecs *TencentCvm) UpdateEcs(ctx context.Context, req *pbecs.UpdateEcsReq) (*pbecs.UpdateEcsResp, error)