-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for EKS cluster import
Signed-off-by: Asutosh Palai <asupalai@gmail.com>
- Loading branch information
1 parent
6a3bda9
commit 6dc94a4
Showing
6 changed files
with
185 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
Copyright © 2023 VMware, Inc. All Rights Reserved. | ||
SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
|
||
package models | ||
|
||
import ( | ||
"github.com/go-openapi/swag" | ||
) | ||
|
||
// VmwareTanzuManageV1alpha1EksclusterListEksClustersResponse Response from listing EksClusters. | ||
// | ||
// swagger:model vmware.tanzu.manage.v1alpha1.ekscluster.ListEksClustersResponse | ||
type VmwareTanzuManageV1alpha1EksclusterListEksClustersResponse struct { | ||
|
||
// List of eksclusters. | ||
EksClusters []*VmwareTanzuManageV1alpha1EksclusterEksCluster `json:"eksClusters"` | ||
|
||
// Total count. | ||
TotalCount string `json:"totalCount,omitempty"` | ||
} | ||
|
||
// MarshalBinary interface implementation. | ||
func (m *VmwareTanzuManageV1alpha1EksclusterListEksClustersResponse) MarshalBinary() ([]byte, error) { | ||
if m == nil { | ||
return nil, nil | ||
} | ||
|
||
return swag.WriteJSON(m) | ||
} | ||
|
||
// UnmarshalBinary interface implementation. | ||
func (m *VmwareTanzuManageV1alpha1EksclusterListEksClustersResponse) UnmarshalBinary(b []byte) error { | ||
var res VmwareTanzuManageV1alpha1EksclusterListEksClustersResponse | ||
if err := swag.ReadJSON(b, &res); err != nil { | ||
return err | ||
} | ||
|
||
*m = res | ||
|
||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters