mirror of
https://github.com/rancher/types.git
synced 2025-06-28 14:36:50 +00:00
Updated go generate
This commit is contained in:
parent
ba0e239c51
commit
713d4e8c3c
@ -62,6 +62,7 @@ type APIServiceClient struct {
|
||||
|
||||
type APIServiceOperations interface {
|
||||
List(opts *types.ListOpts) (*APIServiceCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*APIServiceCollection, error)
|
||||
Create(opts *APIService) (*APIService, error)
|
||||
Update(existing *APIService, updates interface{}) (*APIService, error)
|
||||
Replace(existing *APIService) (*APIService, error)
|
||||
@ -100,6 +101,23 @@ func (c *APIServiceClient) List(opts *types.ListOpts) (*APIServiceCollection, er
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *APIServiceClient) ListAll(opts *types.ListOpts) (*APIServiceCollection, error) {
|
||||
resp := &APIServiceCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *APIServiceCollection) Next() (*APIServiceCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &APIServiceCollection{}
|
||||
|
@ -54,6 +54,7 @@ type NamespaceClient struct {
|
||||
|
||||
type NamespaceOperations interface {
|
||||
List(opts *types.ListOpts) (*NamespaceCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NamespaceCollection, error)
|
||||
Create(opts *Namespace) (*Namespace, error)
|
||||
Update(existing *Namespace, updates interface{}) (*Namespace, error)
|
||||
Replace(existing *Namespace) (*Namespace, error)
|
||||
@ -94,6 +95,23 @@ func (c *NamespaceClient) List(opts *types.ListOpts) (*NamespaceCollection, erro
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NamespaceClient) ListAll(opts *types.ListOpts) (*NamespaceCollection, error) {
|
||||
resp := &NamespaceCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NamespaceCollection) Next() (*NamespaceCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NamespaceCollection{}
|
||||
|
@ -110,6 +110,7 @@ type PersistentVolumeClient struct {
|
||||
|
||||
type PersistentVolumeOperations interface {
|
||||
List(opts *types.ListOpts) (*PersistentVolumeCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PersistentVolumeCollection, error)
|
||||
Create(opts *PersistentVolume) (*PersistentVolume, error)
|
||||
Update(existing *PersistentVolume, updates interface{}) (*PersistentVolume, error)
|
||||
Replace(existing *PersistentVolume) (*PersistentVolume, error)
|
||||
@ -148,6 +149,23 @@ func (c *PersistentVolumeClient) List(opts *types.ListOpts) (*PersistentVolumeCo
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PersistentVolumeClient) ListAll(opts *types.ListOpts) (*PersistentVolumeCollection, error) {
|
||||
resp := &PersistentVolumeCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PersistentVolumeCollection) Next() (*PersistentVolumeCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PersistentVolumeCollection{}
|
||||
|
@ -56,6 +56,7 @@ type StorageClassClient struct {
|
||||
|
||||
type StorageClassOperations interface {
|
||||
List(opts *types.ListOpts) (*StorageClassCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*StorageClassCollection, error)
|
||||
Create(opts *StorageClass) (*StorageClass, error)
|
||||
Update(existing *StorageClass, updates interface{}) (*StorageClass, error)
|
||||
Replace(existing *StorageClass) (*StorageClass, error)
|
||||
@ -94,6 +95,23 @@ func (c *StorageClassClient) List(opts *types.ListOpts) (*StorageClassCollection
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *StorageClassClient) ListAll(opts *types.ListOpts) (*StorageClassCollection, error) {
|
||||
resp := &StorageClassCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *StorageClassCollection) Next() (*StorageClassCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &StorageClassCollection{}
|
||||
|
@ -48,6 +48,7 @@ type AuthConfigClient struct {
|
||||
|
||||
type AuthConfigOperations interface {
|
||||
List(opts *types.ListOpts) (*AuthConfigCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*AuthConfigCollection, error)
|
||||
Create(opts *AuthConfig) (*AuthConfig, error)
|
||||
Update(existing *AuthConfig, updates interface{}) (*AuthConfig, error)
|
||||
Replace(existing *AuthConfig) (*AuthConfig, error)
|
||||
@ -86,6 +87,23 @@ func (c *AuthConfigClient) List(opts *types.ListOpts) (*AuthConfigCollection, er
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *AuthConfigClient) ListAll(opts *types.ListOpts) (*AuthConfigCollection, error) {
|
||||
resp := &AuthConfigCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *AuthConfigCollection) Next() (*AuthConfigCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &AuthConfigCollection{}
|
||||
|
@ -64,6 +64,7 @@ type CatalogClient struct {
|
||||
|
||||
type CatalogOperations interface {
|
||||
List(opts *types.ListOpts) (*CatalogCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*CatalogCollection, error)
|
||||
Create(opts *Catalog) (*Catalog, error)
|
||||
Update(existing *Catalog, updates interface{}) (*Catalog, error)
|
||||
Replace(existing *Catalog) (*Catalog, error)
|
||||
@ -106,6 +107,23 @@ func (c *CatalogClient) List(opts *types.ListOpts) (*CatalogCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *CatalogClient) ListAll(opts *types.ListOpts) (*CatalogCollection, error) {
|
||||
resp := &CatalogCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *CatalogCollection) Next() (*CatalogCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &CatalogCollection{}
|
||||
|
@ -88,6 +88,7 @@ type CatalogTemplateClient struct {
|
||||
|
||||
type CatalogTemplateOperations interface {
|
||||
List(opts *types.ListOpts) (*CatalogTemplateCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*CatalogTemplateCollection, error)
|
||||
Create(opts *CatalogTemplate) (*CatalogTemplate, error)
|
||||
Update(existing *CatalogTemplate, updates interface{}) (*CatalogTemplate, error)
|
||||
Replace(existing *CatalogTemplate) (*CatalogTemplate, error)
|
||||
@ -126,6 +127,23 @@ func (c *CatalogTemplateClient) List(opts *types.ListOpts) (*CatalogTemplateColl
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *CatalogTemplateClient) ListAll(opts *types.ListOpts) (*CatalogTemplateCollection, error) {
|
||||
resp := &CatalogTemplateCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *CatalogTemplateCollection) Next() (*CatalogTemplateCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &CatalogTemplateCollection{}
|
||||
|
@ -80,6 +80,7 @@ type CatalogTemplateVersionClient struct {
|
||||
|
||||
type CatalogTemplateVersionOperations interface {
|
||||
List(opts *types.ListOpts) (*CatalogTemplateVersionCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*CatalogTemplateVersionCollection, error)
|
||||
Create(opts *CatalogTemplateVersion) (*CatalogTemplateVersion, error)
|
||||
Update(existing *CatalogTemplateVersion, updates interface{}) (*CatalogTemplateVersion, error)
|
||||
Replace(existing *CatalogTemplateVersion) (*CatalogTemplateVersion, error)
|
||||
@ -118,6 +119,23 @@ func (c *CatalogTemplateVersionClient) List(opts *types.ListOpts) (*CatalogTempl
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *CatalogTemplateVersionClient) ListAll(opts *types.ListOpts) (*CatalogTemplateVersionCollection, error) {
|
||||
resp := &CatalogTemplateVersionCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *CatalogTemplateVersionCollection) Next() (*CatalogTemplateVersionCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &CatalogTemplateVersionCollection{}
|
||||
|
@ -42,6 +42,7 @@ type CisBenchmarkVersionClient struct {
|
||||
|
||||
type CisBenchmarkVersionOperations interface {
|
||||
List(opts *types.ListOpts) (*CisBenchmarkVersionCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*CisBenchmarkVersionCollection, error)
|
||||
Create(opts *CisBenchmarkVersion) (*CisBenchmarkVersion, error)
|
||||
Update(existing *CisBenchmarkVersion, updates interface{}) (*CisBenchmarkVersion, error)
|
||||
Replace(existing *CisBenchmarkVersion) (*CisBenchmarkVersion, error)
|
||||
@ -80,6 +81,23 @@ func (c *CisBenchmarkVersionClient) List(opts *types.ListOpts) (*CisBenchmarkVer
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *CisBenchmarkVersionClient) ListAll(opts *types.ListOpts) (*CisBenchmarkVersionCollection, error) {
|
||||
resp := &CisBenchmarkVersionCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *CisBenchmarkVersionCollection) Next() (*CisBenchmarkVersionCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &CisBenchmarkVersionCollection{}
|
||||
|
@ -42,6 +42,7 @@ type CisConfigClient struct {
|
||||
|
||||
type CisConfigOperations interface {
|
||||
List(opts *types.ListOpts) (*CisConfigCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*CisConfigCollection, error)
|
||||
Create(opts *CisConfig) (*CisConfig, error)
|
||||
Update(existing *CisConfig, updates interface{}) (*CisConfig, error)
|
||||
Replace(existing *CisConfig) (*CisConfig, error)
|
||||
@ -80,6 +81,23 @@ func (c *CisConfigClient) List(opts *types.ListOpts) (*CisConfigCollection, erro
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *CisConfigClient) ListAll(opts *types.ListOpts) (*CisConfigCollection, error) {
|
||||
resp := &CisConfigCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *CisConfigCollection) Next() (*CisConfigCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &CisConfigCollection{}
|
||||
|
@ -42,6 +42,7 @@ type CloudCredentialClient struct {
|
||||
|
||||
type CloudCredentialOperations interface {
|
||||
List(opts *types.ListOpts) (*CloudCredentialCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*CloudCredentialCollection, error)
|
||||
Create(opts *CloudCredential) (*CloudCredential, error)
|
||||
Update(existing *CloudCredential, updates interface{}) (*CloudCredential, error)
|
||||
Replace(existing *CloudCredential) (*CloudCredential, error)
|
||||
@ -80,6 +81,23 @@ func (c *CloudCredentialClient) List(opts *types.ListOpts) (*CloudCredentialColl
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *CloudCredentialClient) ListAll(opts *types.ListOpts) (*CloudCredentialCollection, error) {
|
||||
resp := &CloudCredentialCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *CloudCredentialCollection) Next() (*CloudCredentialCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &CloudCredentialCollection{}
|
||||
|
@ -126,6 +126,7 @@ type ClusterClient struct {
|
||||
|
||||
type ClusterOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterCollection, error)
|
||||
Create(opts *Cluster) (*Cluster, error)
|
||||
Update(existing *Cluster, updates interface{}) (*Cluster, error)
|
||||
Replace(existing *Cluster) (*Cluster, error)
|
||||
@ -188,6 +189,23 @@ func (c *ClusterClient) List(opts *types.ListOpts) (*ClusterCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterClient) ListAll(opts *types.ListOpts) (*ClusterCollection, error) {
|
||||
resp := &ClusterCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterCollection) Next() (*ClusterCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterCollection{}
|
||||
|
@ -70,6 +70,7 @@ type ClusterAlertClient struct {
|
||||
|
||||
type ClusterAlertOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterAlertCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterAlertCollection, error)
|
||||
Create(opts *ClusterAlert) (*ClusterAlert, error)
|
||||
Update(existing *ClusterAlert, updates interface{}) (*ClusterAlert, error)
|
||||
Replace(existing *ClusterAlert) (*ClusterAlert, error)
|
||||
@ -108,6 +109,23 @@ func (c *ClusterAlertClient) List(opts *types.ListOpts) (*ClusterAlertCollection
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterAlertClient) ListAll(opts *types.ListOpts) (*ClusterAlertCollection, error) {
|
||||
resp := &ClusterAlertCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterAlertCollection) Next() (*ClusterAlertCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterAlertCollection{}
|
||||
|
@ -62,6 +62,7 @@ type ClusterAlertGroupClient struct {
|
||||
|
||||
type ClusterAlertGroupOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterAlertGroupCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterAlertGroupCollection, error)
|
||||
Create(opts *ClusterAlertGroup) (*ClusterAlertGroup, error)
|
||||
Update(existing *ClusterAlertGroup, updates interface{}) (*ClusterAlertGroup, error)
|
||||
Replace(existing *ClusterAlertGroup) (*ClusterAlertGroup, error)
|
||||
@ -100,6 +101,23 @@ func (c *ClusterAlertGroupClient) List(opts *types.ListOpts) (*ClusterAlertGroup
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterAlertGroupClient) ListAll(opts *types.ListOpts) (*ClusterAlertGroupCollection, error) {
|
||||
resp := &ClusterAlertGroupCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterAlertGroupCollection) Next() (*ClusterAlertGroupCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterAlertGroupCollection{}
|
||||
|
@ -72,6 +72,7 @@ type ClusterAlertRuleClient struct {
|
||||
|
||||
type ClusterAlertRuleOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterAlertRuleCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterAlertRuleCollection, error)
|
||||
Create(opts *ClusterAlertRule) (*ClusterAlertRule, error)
|
||||
Update(existing *ClusterAlertRule, updates interface{}) (*ClusterAlertRule, error)
|
||||
Replace(existing *ClusterAlertRule) (*ClusterAlertRule, error)
|
||||
@ -118,6 +119,23 @@ func (c *ClusterAlertRuleClient) List(opts *types.ListOpts) (*ClusterAlertRuleCo
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterAlertRuleClient) ListAll(opts *types.ListOpts) (*ClusterAlertRuleCollection, error) {
|
||||
resp := &ClusterAlertRuleCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterAlertRuleCollection) Next() (*ClusterAlertRuleCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterAlertRuleCollection{}
|
||||
|
@ -68,6 +68,7 @@ type ClusterCatalogClient struct {
|
||||
|
||||
type ClusterCatalogOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterCatalogCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterCatalogCollection, error)
|
||||
Create(opts *ClusterCatalog) (*ClusterCatalog, error)
|
||||
Update(existing *ClusterCatalog, updates interface{}) (*ClusterCatalog, error)
|
||||
Replace(existing *ClusterCatalog) (*ClusterCatalog, error)
|
||||
@ -110,6 +111,23 @@ func (c *ClusterCatalogClient) List(opts *types.ListOpts) (*ClusterCatalogCollec
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterCatalogClient) ListAll(opts *types.ListOpts) (*ClusterCatalogCollection, error) {
|
||||
resp := &ClusterCatalogCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterCatalogCollection) Next() (*ClusterCatalogCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterCatalogCollection{}
|
||||
|
@ -76,6 +76,7 @@ type ClusterLoggingClient struct {
|
||||
|
||||
type ClusterLoggingOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterLoggingCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterLoggingCollection, error)
|
||||
Create(opts *ClusterLogging) (*ClusterLogging, error)
|
||||
Update(existing *ClusterLogging, updates interface{}) (*ClusterLogging, error)
|
||||
Replace(existing *ClusterLogging) (*ClusterLogging, error)
|
||||
@ -118,6 +119,23 @@ func (c *ClusterLoggingClient) List(opts *types.ListOpts) (*ClusterLoggingCollec
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterLoggingClient) ListAll(opts *types.ListOpts) (*ClusterLoggingCollection, error) {
|
||||
resp := &ClusterLoggingCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterLoggingCollection) Next() (*ClusterLoggingCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterLoggingCollection{}
|
||||
|
@ -60,6 +60,7 @@ type ClusterMonitorGraphClient struct {
|
||||
|
||||
type ClusterMonitorGraphOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterMonitorGraphCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterMonitorGraphCollection, error)
|
||||
Create(opts *ClusterMonitorGraph) (*ClusterMonitorGraph, error)
|
||||
Update(existing *ClusterMonitorGraph, updates interface{}) (*ClusterMonitorGraph, error)
|
||||
Replace(existing *ClusterMonitorGraph) (*ClusterMonitorGraph, error)
|
||||
@ -100,6 +101,23 @@ func (c *ClusterMonitorGraphClient) List(opts *types.ListOpts) (*ClusterMonitorG
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterMonitorGraphClient) ListAll(opts *types.ListOpts) (*ClusterMonitorGraphCollection, error) {
|
||||
resp := &ClusterMonitorGraphCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterMonitorGraphCollection) Next() (*ClusterMonitorGraphCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterMonitorGraphCollection{}
|
||||
|
@ -62,6 +62,7 @@ type ClusterRegistrationTokenClient struct {
|
||||
|
||||
type ClusterRegistrationTokenOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterRegistrationTokenCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterRegistrationTokenCollection, error)
|
||||
Create(opts *ClusterRegistrationToken) (*ClusterRegistrationToken, error)
|
||||
Update(existing *ClusterRegistrationToken, updates interface{}) (*ClusterRegistrationToken, error)
|
||||
Replace(existing *ClusterRegistrationToken) (*ClusterRegistrationToken, error)
|
||||
@ -100,6 +101,23 @@ func (c *ClusterRegistrationTokenClient) List(opts *types.ListOpts) (*ClusterReg
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterRegistrationTokenClient) ListAll(opts *types.ListOpts) (*ClusterRegistrationTokenCollection, error) {
|
||||
resp := &ClusterRegistrationTokenCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterRegistrationTokenCollection) Next() (*ClusterRegistrationTokenCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterRegistrationTokenCollection{}
|
||||
|
@ -54,6 +54,7 @@ type ClusterRoleTemplateBindingClient struct {
|
||||
|
||||
type ClusterRoleTemplateBindingOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterRoleTemplateBindingCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterRoleTemplateBindingCollection, error)
|
||||
Create(opts *ClusterRoleTemplateBinding) (*ClusterRoleTemplateBinding, error)
|
||||
Update(existing *ClusterRoleTemplateBinding, updates interface{}) (*ClusterRoleTemplateBinding, error)
|
||||
Replace(existing *ClusterRoleTemplateBinding) (*ClusterRoleTemplateBinding, error)
|
||||
@ -92,6 +93,23 @@ func (c *ClusterRoleTemplateBindingClient) List(opts *types.ListOpts) (*ClusterR
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterRoleTemplateBindingClient) ListAll(opts *types.ListOpts) (*ClusterRoleTemplateBindingCollection, error) {
|
||||
resp := &ClusterRoleTemplateBindingCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterRoleTemplateBindingCollection) Next() (*ClusterRoleTemplateBindingCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterRoleTemplateBindingCollection{}
|
||||
|
@ -58,6 +58,7 @@ type ClusterScanClient struct {
|
||||
|
||||
type ClusterScanOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterScanCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterScanCollection, error)
|
||||
Create(opts *ClusterScan) (*ClusterScan, error)
|
||||
Update(existing *ClusterScan, updates interface{}) (*ClusterScan, error)
|
||||
Replace(existing *ClusterScan) (*ClusterScan, error)
|
||||
@ -96,6 +97,23 @@ func (c *ClusterScanClient) List(opts *types.ListOpts) (*ClusterScanCollection,
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterScanClient) ListAll(opts *types.ListOpts) (*ClusterScanCollection, error) {
|
||||
resp := &ClusterScanCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterScanCollection) Next() (*ClusterScanCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterScanCollection{}
|
||||
|
@ -46,6 +46,7 @@ type ClusterTemplateClient struct {
|
||||
|
||||
type ClusterTemplateOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterTemplateCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterTemplateCollection, error)
|
||||
Create(opts *ClusterTemplate) (*ClusterTemplate, error)
|
||||
Update(existing *ClusterTemplate, updates interface{}) (*ClusterTemplate, error)
|
||||
Replace(existing *ClusterTemplate) (*ClusterTemplate, error)
|
||||
@ -84,6 +85,23 @@ func (c *ClusterTemplateClient) List(opts *types.ListOpts) (*ClusterTemplateColl
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterTemplateClient) ListAll(opts *types.ListOpts) (*ClusterTemplateCollection, error) {
|
||||
resp := &ClusterTemplateCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterTemplateCollection) Next() (*ClusterTemplateCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterTemplateCollection{}
|
||||
|
@ -48,6 +48,7 @@ type ClusterTemplateRevisionClient struct {
|
||||
|
||||
type ClusterTemplateRevisionOperations interface {
|
||||
List(opts *types.ListOpts) (*ClusterTemplateRevisionCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ClusterTemplateRevisionCollection, error)
|
||||
Create(opts *ClusterTemplateRevision) (*ClusterTemplateRevision, error)
|
||||
Update(existing *ClusterTemplateRevision, updates interface{}) (*ClusterTemplateRevision, error)
|
||||
Replace(existing *ClusterTemplateRevision) (*ClusterTemplateRevision, error)
|
||||
@ -92,6 +93,23 @@ func (c *ClusterTemplateRevisionClient) List(opts *types.ListOpts) (*ClusterTemp
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ClusterTemplateRevisionClient) ListAll(opts *types.ListOpts) (*ClusterTemplateRevisionCollection, error) {
|
||||
resp := &ClusterTemplateRevisionCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ClusterTemplateRevisionCollection) Next() (*ClusterTemplateRevisionCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ClusterTemplateRevisionCollection{}
|
||||
|
@ -50,6 +50,7 @@ type ComposeConfigClient struct {
|
||||
|
||||
type ComposeConfigOperations interface {
|
||||
List(opts *types.ListOpts) (*ComposeConfigCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ComposeConfigCollection, error)
|
||||
Create(opts *ComposeConfig) (*ComposeConfig, error)
|
||||
Update(existing *ComposeConfig, updates interface{}) (*ComposeConfig, error)
|
||||
Replace(existing *ComposeConfig) (*ComposeConfig, error)
|
||||
@ -88,6 +89,23 @@ func (c *ComposeConfigClient) List(opts *types.ListOpts) (*ComposeConfigCollecti
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ComposeConfigClient) ListAll(opts *types.ListOpts) (*ComposeConfigCollection, error) {
|
||||
resp := &ComposeConfigCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ComposeConfigCollection) Next() (*ComposeConfigCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ComposeConfigCollection{}
|
||||
|
@ -74,6 +74,7 @@ type DynamicSchemaClient struct {
|
||||
|
||||
type DynamicSchemaOperations interface {
|
||||
List(opts *types.ListOpts) (*DynamicSchemaCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*DynamicSchemaCollection, error)
|
||||
Create(opts *DynamicSchema) (*DynamicSchema, error)
|
||||
Update(existing *DynamicSchema, updates interface{}) (*DynamicSchema, error)
|
||||
Replace(existing *DynamicSchema) (*DynamicSchema, error)
|
||||
@ -112,6 +113,23 @@ func (c *DynamicSchemaClient) List(opts *types.ListOpts) (*DynamicSchemaCollecti
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *DynamicSchemaClient) ListAll(opts *types.ListOpts) (*DynamicSchemaCollection, error) {
|
||||
resp := &DynamicSchemaCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *DynamicSchemaCollection) Next() (*DynamicSchemaCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &DynamicSchemaCollection{}
|
||||
|
@ -58,6 +58,7 @@ type EtcdBackupClient struct {
|
||||
|
||||
type EtcdBackupOperations interface {
|
||||
List(opts *types.ListOpts) (*EtcdBackupCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*EtcdBackupCollection, error)
|
||||
Create(opts *EtcdBackup) (*EtcdBackup, error)
|
||||
Update(existing *EtcdBackup, updates interface{}) (*EtcdBackup, error)
|
||||
Replace(existing *EtcdBackup) (*EtcdBackup, error)
|
||||
@ -96,6 +97,23 @@ func (c *EtcdBackupClient) List(opts *types.ListOpts) (*EtcdBackupCollection, er
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *EtcdBackupClient) ListAll(opts *types.ListOpts) (*EtcdBackupCollection, error) {
|
||||
resp := &EtcdBackupCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *EtcdBackupCollection) Next() (*EtcdBackupCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &EtcdBackupCollection{}
|
||||
|
@ -44,6 +44,7 @@ type FeatureClient struct {
|
||||
|
||||
type FeatureOperations interface {
|
||||
List(opts *types.ListOpts) (*FeatureCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*FeatureCollection, error)
|
||||
Create(opts *Feature) (*Feature, error)
|
||||
Update(existing *Feature, updates interface{}) (*Feature, error)
|
||||
Replace(existing *Feature) (*Feature, error)
|
||||
@ -82,6 +83,23 @@ func (c *FeatureClient) List(opts *types.ListOpts) (*FeatureCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *FeatureClient) ListAll(opts *types.ListOpts) (*FeatureCollection, error) {
|
||||
resp := &FeatureCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *FeatureCollection) Next() (*FeatureCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &FeatureCollection{}
|
||||
|
@ -60,6 +60,7 @@ type GlobalDNSClient struct {
|
||||
|
||||
type GlobalDNSOperations interface {
|
||||
List(opts *types.ListOpts) (*GlobalDNSCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*GlobalDNSCollection, error)
|
||||
Create(opts *GlobalDNS) (*GlobalDNS, error)
|
||||
Update(existing *GlobalDNS, updates interface{}) (*GlobalDNS, error)
|
||||
Replace(existing *GlobalDNS) (*GlobalDNS, error)
|
||||
@ -102,6 +103,23 @@ func (c *GlobalDNSClient) List(opts *types.ListOpts) (*GlobalDNSCollection, erro
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalDNSClient) ListAll(opts *types.ListOpts) (*GlobalDNSCollection, error) {
|
||||
resp := &GlobalDNSCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *GlobalDNSCollection) Next() (*GlobalDNSCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &GlobalDNSCollection{}
|
||||
|
@ -50,6 +50,7 @@ type GlobalDNSProviderClient struct {
|
||||
|
||||
type GlobalDNSProviderOperations interface {
|
||||
List(opts *types.ListOpts) (*GlobalDNSProviderCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*GlobalDNSProviderCollection, error)
|
||||
Create(opts *GlobalDNSProvider) (*GlobalDNSProvider, error)
|
||||
Update(existing *GlobalDNSProvider, updates interface{}) (*GlobalDNSProvider, error)
|
||||
Replace(existing *GlobalDNSProvider) (*GlobalDNSProvider, error)
|
||||
@ -88,6 +89,23 @@ func (c *GlobalDNSProviderClient) List(opts *types.ListOpts) (*GlobalDNSProvider
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalDNSProviderClient) ListAll(opts *types.ListOpts) (*GlobalDNSProviderCollection, error) {
|
||||
resp := &GlobalDNSProviderCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *GlobalDNSProviderCollection) Next() (*GlobalDNSProviderCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &GlobalDNSProviderCollection{}
|
||||
|
@ -48,6 +48,7 @@ type GlobalRoleClient struct {
|
||||
|
||||
type GlobalRoleOperations interface {
|
||||
List(opts *types.ListOpts) (*GlobalRoleCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*GlobalRoleCollection, error)
|
||||
Create(opts *GlobalRole) (*GlobalRole, error)
|
||||
Update(existing *GlobalRole, updates interface{}) (*GlobalRole, error)
|
||||
Replace(existing *GlobalRole) (*GlobalRole, error)
|
||||
@ -86,6 +87,23 @@ func (c *GlobalRoleClient) List(opts *types.ListOpts) (*GlobalRoleCollection, er
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalRoleClient) ListAll(opts *types.ListOpts) (*GlobalRoleCollection, error) {
|
||||
resp := &GlobalRoleCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *GlobalRoleCollection) Next() (*GlobalRoleCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &GlobalRoleCollection{}
|
||||
|
@ -46,6 +46,7 @@ type GlobalRoleBindingClient struct {
|
||||
|
||||
type GlobalRoleBindingOperations interface {
|
||||
List(opts *types.ListOpts) (*GlobalRoleBindingCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*GlobalRoleBindingCollection, error)
|
||||
Create(opts *GlobalRoleBinding) (*GlobalRoleBinding, error)
|
||||
Update(existing *GlobalRoleBinding, updates interface{}) (*GlobalRoleBinding, error)
|
||||
Replace(existing *GlobalRoleBinding) (*GlobalRoleBinding, error)
|
||||
@ -84,6 +85,23 @@ func (c *GlobalRoleBindingClient) List(opts *types.ListOpts) (*GlobalRoleBinding
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GlobalRoleBindingClient) ListAll(opts *types.ListOpts) (*GlobalRoleBindingCollection, error) {
|
||||
resp := &GlobalRoleBindingCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *GlobalRoleBindingCollection) Next() (*GlobalRoleBindingCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &GlobalRoleBindingCollection{}
|
||||
|
@ -40,6 +40,7 @@ type GroupClient struct {
|
||||
|
||||
type GroupOperations interface {
|
||||
List(opts *types.ListOpts) (*GroupCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*GroupCollection, error)
|
||||
Create(opts *Group) (*Group, error)
|
||||
Update(existing *Group, updates interface{}) (*Group, error)
|
||||
Replace(existing *Group) (*Group, error)
|
||||
@ -78,6 +79,23 @@ func (c *GroupClient) List(opts *types.ListOpts) (*GroupCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GroupClient) ListAll(opts *types.ListOpts) (*GroupCollection, error) {
|
||||
resp := &GroupCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *GroupCollection) Next() (*GroupCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &GroupCollection{}
|
||||
|
@ -44,6 +44,7 @@ type GroupMemberClient struct {
|
||||
|
||||
type GroupMemberOperations interface {
|
||||
List(opts *types.ListOpts) (*GroupMemberCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*GroupMemberCollection, error)
|
||||
Create(opts *GroupMember) (*GroupMember, error)
|
||||
Update(existing *GroupMember, updates interface{}) (*GroupMember, error)
|
||||
Replace(existing *GroupMember) (*GroupMember, error)
|
||||
@ -82,6 +83,23 @@ func (c *GroupMemberClient) List(opts *types.ListOpts) (*GroupMemberCollection,
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GroupMemberClient) ListAll(opts *types.ListOpts) (*GroupMemberCollection, error) {
|
||||
resp := &GroupMemberCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *GroupMemberCollection) Next() (*GroupMemberCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &GroupMemberCollection{}
|
||||
|
@ -64,6 +64,7 @@ type KontainerDriverClient struct {
|
||||
|
||||
type KontainerDriverOperations interface {
|
||||
List(opts *types.ListOpts) (*KontainerDriverCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*KontainerDriverCollection, error)
|
||||
Create(opts *KontainerDriver) (*KontainerDriver, error)
|
||||
Update(existing *KontainerDriver, updates interface{}) (*KontainerDriver, error)
|
||||
Replace(existing *KontainerDriver) (*KontainerDriver, error)
|
||||
@ -108,6 +109,23 @@ func (c *KontainerDriverClient) List(opts *types.ListOpts) (*KontainerDriverColl
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *KontainerDriverClient) ListAll(opts *types.ListOpts) (*KontainerDriverCollection, error) {
|
||||
resp := &KontainerDriverCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *KontainerDriverCollection) Next() (*KontainerDriverCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &KontainerDriverCollection{}
|
||||
|
@ -98,6 +98,7 @@ type LdapConfigClient struct {
|
||||
|
||||
type LdapConfigOperations interface {
|
||||
List(opts *types.ListOpts) (*LdapConfigCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*LdapConfigCollection, error)
|
||||
Create(opts *LdapConfig) (*LdapConfig, error)
|
||||
Update(existing *LdapConfig, updates interface{}) (*LdapConfig, error)
|
||||
Replace(existing *LdapConfig) (*LdapConfig, error)
|
||||
@ -136,6 +137,23 @@ func (c *LdapConfigClient) List(opts *types.ListOpts) (*LdapConfigCollection, er
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *LdapConfigClient) ListAll(opts *types.ListOpts) (*LdapConfigCollection, error) {
|
||||
resp := &LdapConfigCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *LdapConfigCollection) Next() (*LdapConfigCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &LdapConfigCollection{}
|
||||
|
@ -46,6 +46,7 @@ type ManagementSecretClient struct {
|
||||
|
||||
type ManagementSecretOperations interface {
|
||||
List(opts *types.ListOpts) (*ManagementSecretCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ManagementSecretCollection, error)
|
||||
Create(opts *ManagementSecret) (*ManagementSecret, error)
|
||||
Update(existing *ManagementSecret, updates interface{}) (*ManagementSecret, error)
|
||||
Replace(existing *ManagementSecret) (*ManagementSecret, error)
|
||||
@ -84,6 +85,23 @@ func (c *ManagementSecretClient) List(opts *types.ListOpts) (*ManagementSecretCo
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ManagementSecretClient) ListAll(opts *types.ListOpts) (*ManagementSecretCollection, error) {
|
||||
resp := &ManagementSecretCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ManagementSecretCollection) Next() (*ManagementSecretCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ManagementSecretCollection{}
|
||||
|
@ -48,6 +48,7 @@ type MonitorMetricClient struct {
|
||||
|
||||
type MonitorMetricOperations interface {
|
||||
List(opts *types.ListOpts) (*MonitorMetricCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*MonitorMetricCollection, error)
|
||||
Create(opts *MonitorMetric) (*MonitorMetric, error)
|
||||
Update(existing *MonitorMetric, updates interface{}) (*MonitorMetric, error)
|
||||
Replace(existing *MonitorMetric) (*MonitorMetric, error)
|
||||
@ -94,6 +95,23 @@ func (c *MonitorMetricClient) List(opts *types.ListOpts) (*MonitorMetricCollecti
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *MonitorMetricClient) ListAll(opts *types.ListOpts) (*MonitorMetricCollection, error) {
|
||||
resp := &MonitorMetricCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *MonitorMetricCollection) Next() (*MonitorMetricCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &MonitorMetricCollection{}
|
||||
|
@ -66,6 +66,7 @@ type MultiClusterAppClient struct {
|
||||
|
||||
type MultiClusterAppOperations interface {
|
||||
List(opts *types.ListOpts) (*MultiClusterAppCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*MultiClusterAppCollection, error)
|
||||
Create(opts *MultiClusterApp) (*MultiClusterApp, error)
|
||||
Update(existing *MultiClusterApp, updates interface{}) (*MultiClusterApp, error)
|
||||
Replace(existing *MultiClusterApp) (*MultiClusterApp, error)
|
||||
@ -110,6 +111,23 @@ func (c *MultiClusterAppClient) List(opts *types.ListOpts) (*MultiClusterAppColl
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *MultiClusterAppClient) ListAll(opts *types.ListOpts) (*MultiClusterAppCollection, error) {
|
||||
resp := &MultiClusterAppCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *MultiClusterAppCollection) Next() (*MultiClusterAppCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &MultiClusterAppCollection{}
|
||||
|
@ -44,6 +44,7 @@ type MultiClusterAppRevisionClient struct {
|
||||
|
||||
type MultiClusterAppRevisionOperations interface {
|
||||
List(opts *types.ListOpts) (*MultiClusterAppRevisionCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*MultiClusterAppRevisionCollection, error)
|
||||
Create(opts *MultiClusterAppRevision) (*MultiClusterAppRevision, error)
|
||||
Update(existing *MultiClusterAppRevision, updates interface{}) (*MultiClusterAppRevision, error)
|
||||
Replace(existing *MultiClusterAppRevision) (*MultiClusterAppRevision, error)
|
||||
@ -82,6 +83,23 @@ func (c *MultiClusterAppRevisionClient) List(opts *types.ListOpts) (*MultiCluste
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *MultiClusterAppRevisionClient) ListAll(opts *types.ListOpts) (*MultiClusterAppRevisionCollection, error) {
|
||||
resp := &MultiClusterAppRevisionCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *MultiClusterAppRevisionCollection) Next() (*MultiClusterAppRevisionCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &MultiClusterAppRevisionCollection{}
|
||||
|
@ -110,6 +110,7 @@ type NodeClient struct {
|
||||
|
||||
type NodeOperations interface {
|
||||
List(opts *types.ListOpts) (*NodeCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NodeCollection, error)
|
||||
Create(opts *Node) (*Node, error)
|
||||
Update(existing *Node, updates interface{}) (*Node, error)
|
||||
Replace(existing *Node) (*Node, error)
|
||||
@ -156,6 +157,23 @@ func (c *NodeClient) List(opts *types.ListOpts) (*NodeCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NodeClient) ListAll(opts *types.ListOpts) (*NodeCollection, error) {
|
||||
resp := &NodeCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NodeCollection) Next() (*NodeCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NodeCollection{}
|
||||
|
@ -64,6 +64,7 @@ type NodeDriverClient struct {
|
||||
|
||||
type NodeDriverOperations interface {
|
||||
List(opts *types.ListOpts) (*NodeDriverCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NodeDriverCollection, error)
|
||||
Create(opts *NodeDriver) (*NodeDriver, error)
|
||||
Update(existing *NodeDriver, updates interface{}) (*NodeDriver, error)
|
||||
Replace(existing *NodeDriver) (*NodeDriver, error)
|
||||
@ -106,6 +107,23 @@ func (c *NodeDriverClient) List(opts *types.ListOpts) (*NodeDriverCollection, er
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NodeDriverClient) ListAll(opts *types.ListOpts) (*NodeDriverCollection, error) {
|
||||
resp := &NodeDriverCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NodeDriverCollection) Next() (*NodeDriverCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NodeDriverCollection{}
|
||||
|
@ -76,6 +76,7 @@ type NodePoolClient struct {
|
||||
|
||||
type NodePoolOperations interface {
|
||||
List(opts *types.ListOpts) (*NodePoolCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NodePoolCollection, error)
|
||||
Create(opts *NodePool) (*NodePool, error)
|
||||
Update(existing *NodePool, updates interface{}) (*NodePool, error)
|
||||
Replace(existing *NodePool) (*NodePool, error)
|
||||
@ -114,6 +115,23 @@ func (c *NodePoolClient) List(opts *types.ListOpts) (*NodePoolCollection, error)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NodePoolClient) ListAll(opts *types.ListOpts) (*NodePoolCollection, error) {
|
||||
resp := &NodePoolCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NodePoolCollection) Next() (*NodePoolCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NodePoolCollection{}
|
||||
|
@ -78,6 +78,7 @@ type NodeTemplateClient struct {
|
||||
|
||||
type NodeTemplateOperations interface {
|
||||
List(opts *types.ListOpts) (*NodeTemplateCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NodeTemplateCollection, error)
|
||||
Create(opts *NodeTemplate) (*NodeTemplate, error)
|
||||
Update(existing *NodeTemplate, updates interface{}) (*NodeTemplate, error)
|
||||
Replace(existing *NodeTemplate) (*NodeTemplate, error)
|
||||
@ -116,6 +117,23 @@ func (c *NodeTemplateClient) List(opts *types.ListOpts) (*NodeTemplateCollection
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NodeTemplateClient) ListAll(opts *types.ListOpts) (*NodeTemplateCollection, error) {
|
||||
resp := &NodeTemplateCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NodeTemplateCollection) Next() (*NodeTemplateCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NodeTemplateCollection{}
|
||||
|
@ -66,6 +66,7 @@ type NotifierClient struct {
|
||||
|
||||
type NotifierOperations interface {
|
||||
List(opts *types.ListOpts) (*NotifierCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NotifierCollection, error)
|
||||
Create(opts *Notifier) (*Notifier, error)
|
||||
Update(existing *Notifier, updates interface{}) (*Notifier, error)
|
||||
Replace(existing *Notifier) (*Notifier, error)
|
||||
@ -108,6 +109,23 @@ func (c *NotifierClient) List(opts *types.ListOpts) (*NotifierCollection, error)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NotifierClient) ListAll(opts *types.ListOpts) (*NotifierCollection, error) {
|
||||
resp := &NotifierCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NotifierCollection) Next() (*NotifierCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NotifierCollection{}
|
||||
|
@ -90,6 +90,7 @@ type PodSecurityPolicyTemplateClient struct {
|
||||
|
||||
type PodSecurityPolicyTemplateOperations interface {
|
||||
List(opts *types.ListOpts) (*PodSecurityPolicyTemplateCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PodSecurityPolicyTemplateCollection, error)
|
||||
Create(opts *PodSecurityPolicyTemplate) (*PodSecurityPolicyTemplate, error)
|
||||
Update(existing *PodSecurityPolicyTemplate, updates interface{}) (*PodSecurityPolicyTemplate, error)
|
||||
Replace(existing *PodSecurityPolicyTemplate) (*PodSecurityPolicyTemplate, error)
|
||||
@ -128,6 +129,23 @@ func (c *PodSecurityPolicyTemplateClient) List(opts *types.ListOpts) (*PodSecuri
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PodSecurityPolicyTemplateClient) ListAll(opts *types.ListOpts) (*PodSecurityPolicyTemplateCollection, error) {
|
||||
resp := &PodSecurityPolicyTemplateCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PodSecurityPolicyTemplateCollection) Next() (*PodSecurityPolicyTemplateCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PodSecurityPolicyTemplateCollection{}
|
||||
|
@ -46,6 +46,7 @@ type PodSecurityPolicyTemplateProjectBindingClient struct {
|
||||
|
||||
type PodSecurityPolicyTemplateProjectBindingOperations interface {
|
||||
List(opts *types.ListOpts) (*PodSecurityPolicyTemplateProjectBindingCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PodSecurityPolicyTemplateProjectBindingCollection, error)
|
||||
Create(opts *PodSecurityPolicyTemplateProjectBinding) (*PodSecurityPolicyTemplateProjectBinding, error)
|
||||
Update(existing *PodSecurityPolicyTemplateProjectBinding, updates interface{}) (*PodSecurityPolicyTemplateProjectBinding, error)
|
||||
Replace(existing *PodSecurityPolicyTemplateProjectBinding) (*PodSecurityPolicyTemplateProjectBinding, error)
|
||||
@ -84,6 +85,23 @@ func (c *PodSecurityPolicyTemplateProjectBindingClient) List(opts *types.ListOpt
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PodSecurityPolicyTemplateProjectBindingClient) ListAll(opts *types.ListOpts) (*PodSecurityPolicyTemplateProjectBindingCollection, error) {
|
||||
resp := &PodSecurityPolicyTemplateProjectBindingCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PodSecurityPolicyTemplateProjectBindingCollection) Next() (*PodSecurityPolicyTemplateProjectBindingCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PodSecurityPolicyTemplateProjectBindingCollection{}
|
||||
|
@ -44,6 +44,7 @@ type PreferenceClient struct {
|
||||
|
||||
type PreferenceOperations interface {
|
||||
List(opts *types.ListOpts) (*PreferenceCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PreferenceCollection, error)
|
||||
Create(opts *Preference) (*Preference, error)
|
||||
Update(existing *Preference, updates interface{}) (*Preference, error)
|
||||
Replace(existing *Preference) (*Preference, error)
|
||||
@ -82,6 +83,23 @@ func (c *PreferenceClient) List(opts *types.ListOpts) (*PreferenceCollection, er
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PreferenceClient) ListAll(opts *types.ListOpts) (*PreferenceCollection, error) {
|
||||
resp := &PreferenceCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PreferenceCollection) Next() (*PreferenceCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PreferenceCollection{}
|
||||
|
@ -56,6 +56,7 @@ type PrincipalClient struct {
|
||||
|
||||
type PrincipalOperations interface {
|
||||
List(opts *types.ListOpts) (*PrincipalCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PrincipalCollection, error)
|
||||
Create(opts *Principal) (*Principal, error)
|
||||
Update(existing *Principal, updates interface{}) (*Principal, error)
|
||||
Replace(existing *Principal) (*Principal, error)
|
||||
@ -96,6 +97,23 @@ func (c *PrincipalClient) List(opts *types.ListOpts) (*PrincipalCollection, erro
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PrincipalClient) ListAll(opts *types.ListOpts) (*PrincipalCollection, error) {
|
||||
resp := &PrincipalCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PrincipalCollection) Next() (*PrincipalCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PrincipalCollection{}
|
||||
|
@ -66,6 +66,7 @@ type ProjectClient struct {
|
||||
|
||||
type ProjectOperations interface {
|
||||
List(opts *types.ListOpts) (*ProjectCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ProjectCollection, error)
|
||||
Create(opts *Project) (*Project, error)
|
||||
Update(existing *Project, updates interface{}) (*Project, error)
|
||||
Replace(existing *Project) (*Project, error)
|
||||
@ -116,6 +117,23 @@ func (c *ProjectClient) List(opts *types.ListOpts) (*ProjectCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ProjectClient) ListAll(opts *types.ListOpts) (*ProjectCollection, error) {
|
||||
resp := &ProjectCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ProjectCollection) Next() (*ProjectCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ProjectCollection{}
|
||||
|
@ -68,6 +68,7 @@ type ProjectAlertClient struct {
|
||||
|
||||
type ProjectAlertOperations interface {
|
||||
List(opts *types.ListOpts) (*ProjectAlertCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ProjectAlertCollection, error)
|
||||
Create(opts *ProjectAlert) (*ProjectAlert, error)
|
||||
Update(existing *ProjectAlert, updates interface{}) (*ProjectAlert, error)
|
||||
Replace(existing *ProjectAlert) (*ProjectAlert, error)
|
||||
@ -106,6 +107,23 @@ func (c *ProjectAlertClient) List(opts *types.ListOpts) (*ProjectAlertCollection
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ProjectAlertClient) ListAll(opts *types.ListOpts) (*ProjectAlertCollection, error) {
|
||||
resp := &ProjectAlertCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ProjectAlertCollection) Next() (*ProjectAlertCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ProjectAlertCollection{}
|
||||
|
@ -62,6 +62,7 @@ type ProjectAlertGroupClient struct {
|
||||
|
||||
type ProjectAlertGroupOperations interface {
|
||||
List(opts *types.ListOpts) (*ProjectAlertGroupCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ProjectAlertGroupCollection, error)
|
||||
Create(opts *ProjectAlertGroup) (*ProjectAlertGroup, error)
|
||||
Update(existing *ProjectAlertGroup, updates interface{}) (*ProjectAlertGroup, error)
|
||||
Replace(existing *ProjectAlertGroup) (*ProjectAlertGroup, error)
|
||||
@ -100,6 +101,23 @@ func (c *ProjectAlertGroupClient) List(opts *types.ListOpts) (*ProjectAlertGroup
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ProjectAlertGroupClient) ListAll(opts *types.ListOpts) (*ProjectAlertGroupCollection, error) {
|
||||
resp := &ProjectAlertGroupCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ProjectAlertGroupCollection) Next() (*ProjectAlertGroupCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ProjectAlertGroupCollection{}
|
||||
|
@ -70,6 +70,7 @@ type ProjectAlertRuleClient struct {
|
||||
|
||||
type ProjectAlertRuleOperations interface {
|
||||
List(opts *types.ListOpts) (*ProjectAlertRuleCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ProjectAlertRuleCollection, error)
|
||||
Create(opts *ProjectAlertRule) (*ProjectAlertRule, error)
|
||||
Update(existing *ProjectAlertRule, updates interface{}) (*ProjectAlertRule, error)
|
||||
Replace(existing *ProjectAlertRule) (*ProjectAlertRule, error)
|
||||
@ -116,6 +117,23 @@ func (c *ProjectAlertRuleClient) List(opts *types.ListOpts) (*ProjectAlertRuleCo
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ProjectAlertRuleClient) ListAll(opts *types.ListOpts) (*ProjectAlertRuleCollection, error) {
|
||||
resp := &ProjectAlertRuleCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ProjectAlertRuleCollection) Next() (*ProjectAlertRuleCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ProjectAlertRuleCollection{}
|
||||
|
@ -68,6 +68,7 @@ type ProjectCatalogClient struct {
|
||||
|
||||
type ProjectCatalogOperations interface {
|
||||
List(opts *types.ListOpts) (*ProjectCatalogCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ProjectCatalogCollection, error)
|
||||
Create(opts *ProjectCatalog) (*ProjectCatalog, error)
|
||||
Update(existing *ProjectCatalog, updates interface{}) (*ProjectCatalog, error)
|
||||
Replace(existing *ProjectCatalog) (*ProjectCatalog, error)
|
||||
@ -110,6 +111,23 @@ func (c *ProjectCatalogClient) List(opts *types.ListOpts) (*ProjectCatalogCollec
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ProjectCatalogClient) ListAll(opts *types.ListOpts) (*ProjectCatalogCollection, error) {
|
||||
resp := &ProjectCatalogCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ProjectCatalogCollection) Next() (*ProjectCatalogCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ProjectCatalogCollection{}
|
||||
|
@ -70,6 +70,7 @@ type ProjectLoggingClient struct {
|
||||
|
||||
type ProjectLoggingOperations interface {
|
||||
List(opts *types.ListOpts) (*ProjectLoggingCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ProjectLoggingCollection, error)
|
||||
Create(opts *ProjectLogging) (*ProjectLogging, error)
|
||||
Update(existing *ProjectLogging, updates interface{}) (*ProjectLogging, error)
|
||||
Replace(existing *ProjectLogging) (*ProjectLogging, error)
|
||||
@ -112,6 +113,23 @@ func (c *ProjectLoggingClient) List(opts *types.ListOpts) (*ProjectLoggingCollec
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ProjectLoggingClient) ListAll(opts *types.ListOpts) (*ProjectLoggingCollection, error) {
|
||||
resp := &ProjectLoggingCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ProjectLoggingCollection) Next() (*ProjectLoggingCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ProjectLoggingCollection{}
|
||||
|
@ -60,6 +60,7 @@ type ProjectMonitorGraphClient struct {
|
||||
|
||||
type ProjectMonitorGraphOperations interface {
|
||||
List(opts *types.ListOpts) (*ProjectMonitorGraphCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ProjectMonitorGraphCollection, error)
|
||||
Create(opts *ProjectMonitorGraph) (*ProjectMonitorGraph, error)
|
||||
Update(existing *ProjectMonitorGraph, updates interface{}) (*ProjectMonitorGraph, error)
|
||||
Replace(existing *ProjectMonitorGraph) (*ProjectMonitorGraph, error)
|
||||
@ -100,6 +101,23 @@ func (c *ProjectMonitorGraphClient) List(opts *types.ListOpts) (*ProjectMonitorG
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ProjectMonitorGraphClient) ListAll(opts *types.ListOpts) (*ProjectMonitorGraphCollection, error) {
|
||||
resp := &ProjectMonitorGraphCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ProjectMonitorGraphCollection) Next() (*ProjectMonitorGraphCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ProjectMonitorGraphCollection{}
|
||||
|
@ -54,6 +54,7 @@ type ProjectNetworkPolicyClient struct {
|
||||
|
||||
type ProjectNetworkPolicyOperations interface {
|
||||
List(opts *types.ListOpts) (*ProjectNetworkPolicyCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ProjectNetworkPolicyCollection, error)
|
||||
Create(opts *ProjectNetworkPolicy) (*ProjectNetworkPolicy, error)
|
||||
Update(existing *ProjectNetworkPolicy, updates interface{}) (*ProjectNetworkPolicy, error)
|
||||
Replace(existing *ProjectNetworkPolicy) (*ProjectNetworkPolicy, error)
|
||||
@ -92,6 +93,23 @@ func (c *ProjectNetworkPolicyClient) List(opts *types.ListOpts) (*ProjectNetwork
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ProjectNetworkPolicyClient) ListAll(opts *types.ListOpts) (*ProjectNetworkPolicyCollection, error) {
|
||||
resp := &ProjectNetworkPolicyCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ProjectNetworkPolicyCollection) Next() (*ProjectNetworkPolicyCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ProjectNetworkPolicyCollection{}
|
||||
|
@ -56,6 +56,7 @@ type ProjectRoleTemplateBindingClient struct {
|
||||
|
||||
type ProjectRoleTemplateBindingOperations interface {
|
||||
List(opts *types.ListOpts) (*ProjectRoleTemplateBindingCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ProjectRoleTemplateBindingCollection, error)
|
||||
Create(opts *ProjectRoleTemplateBinding) (*ProjectRoleTemplateBinding, error)
|
||||
Update(existing *ProjectRoleTemplateBinding, updates interface{}) (*ProjectRoleTemplateBinding, error)
|
||||
Replace(existing *ProjectRoleTemplateBinding) (*ProjectRoleTemplateBinding, error)
|
||||
@ -94,6 +95,23 @@ func (c *ProjectRoleTemplateBindingClient) List(opts *types.ListOpts) (*ProjectR
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ProjectRoleTemplateBindingClient) ListAll(opts *types.ListOpts) (*ProjectRoleTemplateBindingCollection, error) {
|
||||
resp := &ProjectRoleTemplateBindingCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ProjectRoleTemplateBindingCollection) Next() (*ProjectRoleTemplateBindingCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ProjectRoleTemplateBindingCollection{}
|
||||
|
@ -42,6 +42,7 @@ type RKEAddonClient struct {
|
||||
|
||||
type RKEAddonOperations interface {
|
||||
List(opts *types.ListOpts) (*RKEAddonCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*RKEAddonCollection, error)
|
||||
Create(opts *RKEAddon) (*RKEAddon, error)
|
||||
Update(existing *RKEAddon, updates interface{}) (*RKEAddon, error)
|
||||
Replace(existing *RKEAddon) (*RKEAddon, error)
|
||||
@ -80,6 +81,23 @@ func (c *RKEAddonClient) List(opts *types.ListOpts) (*RKEAddonCollection, error)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEAddonClient) ListAll(opts *types.ListOpts) (*RKEAddonCollection, error) {
|
||||
resp := &RKEAddonCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *RKEAddonCollection) Next() (*RKEAddonCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &RKEAddonCollection{}
|
||||
|
@ -42,6 +42,7 @@ type RKEK8sServiceOptionClient struct {
|
||||
|
||||
type RKEK8sServiceOptionOperations interface {
|
||||
List(opts *types.ListOpts) (*RKEK8sServiceOptionCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*RKEK8sServiceOptionCollection, error)
|
||||
Create(opts *RKEK8sServiceOption) (*RKEK8sServiceOption, error)
|
||||
Update(existing *RKEK8sServiceOption, updates interface{}) (*RKEK8sServiceOption, error)
|
||||
Replace(existing *RKEK8sServiceOption) (*RKEK8sServiceOption, error)
|
||||
@ -80,6 +81,23 @@ func (c *RKEK8sServiceOptionClient) List(opts *types.ListOpts) (*RKEK8sServiceOp
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sServiceOptionClient) ListAll(opts *types.ListOpts) (*RKEK8sServiceOptionCollection, error) {
|
||||
resp := &RKEK8sServiceOptionCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *RKEK8sServiceOptionCollection) Next() (*RKEK8sServiceOptionCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &RKEK8sServiceOptionCollection{}
|
||||
|
@ -42,6 +42,7 @@ type RKEK8sSystemImageClient struct {
|
||||
|
||||
type RKEK8sSystemImageOperations interface {
|
||||
List(opts *types.ListOpts) (*RKEK8sSystemImageCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*RKEK8sSystemImageCollection, error)
|
||||
Create(opts *RKEK8sSystemImage) (*RKEK8sSystemImage, error)
|
||||
Update(existing *RKEK8sSystemImage, updates interface{}) (*RKEK8sSystemImage, error)
|
||||
Replace(existing *RKEK8sSystemImage) (*RKEK8sSystemImage, error)
|
||||
@ -80,6 +81,23 @@ func (c *RKEK8sSystemImageClient) List(opts *types.ListOpts) (*RKEK8sSystemImage
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RKEK8sSystemImageClient) ListAll(opts *types.ListOpts) (*RKEK8sSystemImageCollection, error) {
|
||||
resp := &RKEK8sSystemImageCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *RKEK8sSystemImageCollection) Next() (*RKEK8sSystemImageCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &RKEK8sSystemImageCollection{}
|
||||
|
@ -62,6 +62,7 @@ type RoleTemplateClient struct {
|
||||
|
||||
type RoleTemplateOperations interface {
|
||||
List(opts *types.ListOpts) (*RoleTemplateCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*RoleTemplateCollection, error)
|
||||
Create(opts *RoleTemplate) (*RoleTemplate, error)
|
||||
Update(existing *RoleTemplate, updates interface{}) (*RoleTemplate, error)
|
||||
Replace(existing *RoleTemplate) (*RoleTemplate, error)
|
||||
@ -100,6 +101,23 @@ func (c *RoleTemplateClient) List(opts *types.ListOpts) (*RoleTemplateCollection
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *RoleTemplateClient) ListAll(opts *types.ListOpts) (*RoleTemplateCollection, error) {
|
||||
resp := &RoleTemplateCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *RoleTemplateCollection) Next() (*RoleTemplateCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &RoleTemplateCollection{}
|
||||
|
@ -48,6 +48,7 @@ type SettingClient struct {
|
||||
|
||||
type SettingOperations interface {
|
||||
List(opts *types.ListOpts) (*SettingCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*SettingCollection, error)
|
||||
Create(opts *Setting) (*Setting, error)
|
||||
Update(existing *Setting, updates interface{}) (*Setting, error)
|
||||
Replace(existing *Setting) (*Setting, error)
|
||||
@ -86,6 +87,23 @@ func (c *SettingClient) List(opts *types.ListOpts) (*SettingCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *SettingClient) ListAll(opts *types.ListOpts) (*SettingCollection, error) {
|
||||
resp := &SettingCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *SettingCollection) Next() (*SettingCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &SettingCollection{}
|
||||
|
@ -88,6 +88,7 @@ type TemplateClient struct {
|
||||
|
||||
type TemplateOperations interface {
|
||||
List(opts *types.ListOpts) (*TemplateCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*TemplateCollection, error)
|
||||
Create(opts *Template) (*Template, error)
|
||||
Update(existing *Template, updates interface{}) (*Template, error)
|
||||
Replace(existing *Template) (*Template, error)
|
||||
@ -126,6 +127,23 @@ func (c *TemplateClient) List(opts *types.ListOpts) (*TemplateCollection, error)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *TemplateClient) ListAll(opts *types.ListOpts) (*TemplateCollection, error) {
|
||||
resp := &TemplateCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *TemplateCollection) Next() (*TemplateCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &TemplateCollection{}
|
||||
|
@ -42,6 +42,7 @@ type TemplateContentClient struct {
|
||||
|
||||
type TemplateContentOperations interface {
|
||||
List(opts *types.ListOpts) (*TemplateContentCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*TemplateContentCollection, error)
|
||||
Create(opts *TemplateContent) (*TemplateContent, error)
|
||||
Update(existing *TemplateContent, updates interface{}) (*TemplateContent, error)
|
||||
Replace(existing *TemplateContent) (*TemplateContent, error)
|
||||
@ -80,6 +81,23 @@ func (c *TemplateContentClient) List(opts *types.ListOpts) (*TemplateContentColl
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *TemplateContentClient) ListAll(opts *types.ListOpts) (*TemplateContentCollection, error) {
|
||||
resp := &TemplateContentCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *TemplateContentCollection) Next() (*TemplateContentCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &TemplateContentCollection{}
|
||||
|
@ -80,6 +80,7 @@ type TemplateVersionClient struct {
|
||||
|
||||
type TemplateVersionOperations interface {
|
||||
List(opts *types.ListOpts) (*TemplateVersionCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*TemplateVersionCollection, error)
|
||||
Create(opts *TemplateVersion) (*TemplateVersion, error)
|
||||
Update(existing *TemplateVersion, updates interface{}) (*TemplateVersion, error)
|
||||
Replace(existing *TemplateVersion) (*TemplateVersion, error)
|
||||
@ -118,6 +119,23 @@ func (c *TemplateVersionClient) List(opts *types.ListOpts) (*TemplateVersionColl
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *TemplateVersionClient) ListAll(opts *types.ListOpts) (*TemplateVersionCollection, error) {
|
||||
resp := &TemplateVersionCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *TemplateVersionCollection) Next() (*TemplateVersionCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &TemplateVersionCollection{}
|
||||
|
@ -70,6 +70,7 @@ type TokenClient struct {
|
||||
|
||||
type TokenOperations interface {
|
||||
List(opts *types.ListOpts) (*TokenCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*TokenCollection, error)
|
||||
Create(opts *Token) (*Token, error)
|
||||
Update(existing *Token, updates interface{}) (*Token, error)
|
||||
Replace(existing *Token) (*Token, error)
|
||||
@ -110,6 +111,23 @@ func (c *TokenClient) List(opts *types.ListOpts) (*TokenCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *TokenClient) ListAll(opts *types.ListOpts) (*TokenCollection, error) {
|
||||
resp := &TokenCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *TokenCollection) Next() (*TokenCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &TokenCollection{}
|
||||
|
@ -62,6 +62,7 @@ type UserClient struct {
|
||||
|
||||
type UserOperations interface {
|
||||
List(opts *types.ListOpts) (*UserCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*UserCollection, error)
|
||||
Create(opts *User) (*User, error)
|
||||
Update(existing *User, updates interface{}) (*User, error)
|
||||
Replace(existing *User) (*User, error)
|
||||
@ -108,6 +109,23 @@ func (c *UserClient) List(opts *types.ListOpts) (*UserCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *UserClient) ListAll(opts *types.ListOpts) (*UserCollection, error) {
|
||||
resp := &UserCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *UserCollection) Next() (*UserCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &UserCollection{}
|
||||
|
@ -42,6 +42,7 @@ type AuthProviderClient struct {
|
||||
|
||||
type AuthProviderOperations interface {
|
||||
List(opts *types.ListOpts) (*AuthProviderCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*AuthProviderCollection, error)
|
||||
Create(opts *AuthProvider) (*AuthProvider, error)
|
||||
Update(existing *AuthProvider, updates interface{}) (*AuthProvider, error)
|
||||
Replace(existing *AuthProvider) (*AuthProvider, error)
|
||||
@ -80,6 +81,23 @@ func (c *AuthProviderClient) List(opts *types.ListOpts) (*AuthProviderCollection
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *AuthProviderClient) ListAll(opts *types.ListOpts) (*AuthProviderCollection, error) {
|
||||
resp := &AuthProviderCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *AuthProviderCollection) Next() (*AuthProviderCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &AuthProviderCollection{}
|
||||
|
@ -112,6 +112,7 @@ type AlertmanagerClient struct {
|
||||
|
||||
type AlertmanagerOperations interface {
|
||||
List(opts *types.ListOpts) (*AlertmanagerCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*AlertmanagerCollection, error)
|
||||
Create(opts *Alertmanager) (*Alertmanager, error)
|
||||
Update(existing *Alertmanager, updates interface{}) (*Alertmanager, error)
|
||||
Replace(existing *Alertmanager) (*Alertmanager, error)
|
||||
@ -150,6 +151,23 @@ func (c *AlertmanagerClient) List(opts *types.ListOpts) (*AlertmanagerCollection
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *AlertmanagerClient) ListAll(opts *types.ListOpts) (*AlertmanagerCollection, error) {
|
||||
resp := &AlertmanagerCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *AlertmanagerCollection) Next() (*AlertmanagerCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &AlertmanagerCollection{}
|
||||
|
@ -80,6 +80,7 @@ type AppClient struct {
|
||||
|
||||
type AppOperations interface {
|
||||
List(opts *types.ListOpts) (*AppCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*AppCollection, error)
|
||||
Create(opts *App) (*App, error)
|
||||
Update(existing *App, updates interface{}) (*App, error)
|
||||
Replace(existing *App) (*App, error)
|
||||
@ -122,6 +123,23 @@ func (c *AppClient) List(opts *types.ListOpts) (*AppCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *AppClient) ListAll(opts *types.ListOpts) (*AppCollection, error) {
|
||||
resp := &AppCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *AppCollection) Next() (*AppCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &AppCollection{}
|
||||
|
@ -52,6 +52,7 @@ type AppRevisionClient struct {
|
||||
|
||||
type AppRevisionOperations interface {
|
||||
List(opts *types.ListOpts) (*AppRevisionCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*AppRevisionCollection, error)
|
||||
Create(opts *AppRevision) (*AppRevision, error)
|
||||
Update(existing *AppRevision, updates interface{}) (*AppRevision, error)
|
||||
Replace(existing *AppRevision) (*AppRevision, error)
|
||||
@ -90,6 +91,23 @@ func (c *AppRevisionClient) List(opts *types.ListOpts) (*AppRevisionCollection,
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *AppRevisionClient) ListAll(opts *types.ListOpts) (*AppRevisionCollection, error) {
|
||||
resp := &AppRevisionCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *AppRevisionCollection) Next() (*AppRevisionCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &AppRevisionCollection{}
|
||||
|
@ -50,6 +50,7 @@ type BasicAuthClient struct {
|
||||
|
||||
type BasicAuthOperations interface {
|
||||
List(opts *types.ListOpts) (*BasicAuthCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*BasicAuthCollection, error)
|
||||
Create(opts *BasicAuth) (*BasicAuth, error)
|
||||
Update(existing *BasicAuth, updates interface{}) (*BasicAuth, error)
|
||||
Replace(existing *BasicAuth) (*BasicAuth, error)
|
||||
@ -88,6 +89,23 @@ func (c *BasicAuthClient) List(opts *types.ListOpts) (*BasicAuthCollection, erro
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *BasicAuthClient) ListAll(opts *types.ListOpts) (*BasicAuthCollection, error) {
|
||||
resp := &BasicAuthCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *BasicAuthCollection) Next() (*BasicAuthCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &BasicAuthCollection{}
|
||||
|
@ -70,6 +70,7 @@ type CertificateClient struct {
|
||||
|
||||
type CertificateOperations interface {
|
||||
List(opts *types.ListOpts) (*CertificateCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*CertificateCollection, error)
|
||||
Create(opts *Certificate) (*Certificate, error)
|
||||
Update(existing *Certificate, updates interface{}) (*Certificate, error)
|
||||
Replace(existing *Certificate) (*Certificate, error)
|
||||
@ -108,6 +109,23 @@ func (c *CertificateClient) List(opts *types.ListOpts) (*CertificateCollection,
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *CertificateClient) ListAll(opts *types.ListOpts) (*CertificateCollection, error) {
|
||||
resp := &CertificateCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *CertificateCollection) Next() (*CertificateCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &CertificateCollection{}
|
||||
|
@ -48,6 +48,7 @@ type ConfigMapClient struct {
|
||||
|
||||
type ConfigMapOperations interface {
|
||||
List(opts *types.ListOpts) (*ConfigMapCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ConfigMapCollection, error)
|
||||
Create(opts *ConfigMap) (*ConfigMap, error)
|
||||
Update(existing *ConfigMap, updates interface{}) (*ConfigMap, error)
|
||||
Replace(existing *ConfigMap) (*ConfigMap, error)
|
||||
@ -86,6 +87,23 @@ func (c *ConfigMapClient) List(opts *types.ListOpts) (*ConfigMapCollection, erro
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ConfigMapClient) ListAll(opts *types.ListOpts) (*ConfigMapCollection, error) {
|
||||
resp := &ConfigMapCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ConfigMapCollection) Next() (*ConfigMapCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ConfigMapCollection{}
|
||||
|
@ -132,6 +132,7 @@ type CronJobClient struct {
|
||||
|
||||
type CronJobOperations interface {
|
||||
List(opts *types.ListOpts) (*CronJobCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*CronJobCollection, error)
|
||||
Create(opts *CronJob) (*CronJob, error)
|
||||
Update(existing *CronJob, updates interface{}) (*CronJob, error)
|
||||
Replace(existing *CronJob) (*CronJob, error)
|
||||
@ -170,6 +171,23 @@ func (c *CronJobClient) List(opts *types.ListOpts) (*CronJobCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *CronJobClient) ListAll(opts *types.ListOpts) (*CronJobCollection, error) {
|
||||
resp := &CronJobCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *CronJobCollection) Next() (*CronJobCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &CronJobCollection{}
|
||||
|
@ -130,6 +130,7 @@ type DaemonSetClient struct {
|
||||
|
||||
type DaemonSetOperations interface {
|
||||
List(opts *types.ListOpts) (*DaemonSetCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*DaemonSetCollection, error)
|
||||
Create(opts *DaemonSet) (*DaemonSet, error)
|
||||
Update(existing *DaemonSet, updates interface{}) (*DaemonSet, error)
|
||||
Replace(existing *DaemonSet) (*DaemonSet, error)
|
||||
@ -168,6 +169,23 @@ func (c *DaemonSetClient) List(opts *types.ListOpts) (*DaemonSetCollection, erro
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *DaemonSetClient) ListAll(opts *types.ListOpts) (*DaemonSetCollection, error) {
|
||||
resp := &DaemonSetCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *DaemonSetCollection) Next() (*DaemonSetCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &DaemonSetCollection{}
|
||||
|
@ -134,6 +134,7 @@ type DeploymentClient struct {
|
||||
|
||||
type DeploymentOperations interface {
|
||||
List(opts *types.ListOpts) (*DeploymentCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*DeploymentCollection, error)
|
||||
Create(opts *Deployment) (*Deployment, error)
|
||||
Update(existing *Deployment, updates interface{}) (*Deployment, error)
|
||||
Replace(existing *Deployment) (*Deployment, error)
|
||||
@ -178,6 +179,23 @@ func (c *DeploymentClient) List(opts *types.ListOpts) (*DeploymentCollection, er
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *DeploymentClient) ListAll(opts *types.ListOpts) (*DeploymentCollection, error) {
|
||||
resp := &DeploymentCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *DeploymentCollection) Next() (*DeploymentCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &DeploymentCollection{}
|
||||
|
@ -58,6 +58,7 @@ type DestinationRuleClient struct {
|
||||
|
||||
type DestinationRuleOperations interface {
|
||||
List(opts *types.ListOpts) (*DestinationRuleCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*DestinationRuleCollection, error)
|
||||
Create(opts *DestinationRule) (*DestinationRule, error)
|
||||
Update(existing *DestinationRule, updates interface{}) (*DestinationRule, error)
|
||||
Replace(existing *DestinationRule) (*DestinationRule, error)
|
||||
@ -96,6 +97,23 @@ func (c *DestinationRuleClient) List(opts *types.ListOpts) (*DestinationRuleColl
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *DestinationRuleClient) ListAll(opts *types.ListOpts) (*DestinationRuleCollection, error) {
|
||||
resp := &DestinationRuleCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *DestinationRuleCollection) Next() (*DestinationRuleCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &DestinationRuleCollection{}
|
||||
|
@ -74,6 +74,7 @@ type DNSRecordClient struct {
|
||||
|
||||
type DNSRecordOperations interface {
|
||||
List(opts *types.ListOpts) (*DNSRecordCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*DNSRecordCollection, error)
|
||||
Create(opts *DNSRecord) (*DNSRecord, error)
|
||||
Update(existing *DNSRecord, updates interface{}) (*DNSRecord, error)
|
||||
Replace(existing *DNSRecord) (*DNSRecord, error)
|
||||
@ -112,6 +113,23 @@ func (c *DNSRecordClient) List(opts *types.ListOpts) (*DNSRecordCollection, erro
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *DNSRecordClient) ListAll(opts *types.ListOpts) (*DNSRecordCollection, error) {
|
||||
resp := &DNSRecordCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *DNSRecordCollection) Next() (*DNSRecordCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &DNSRecordCollection{}
|
||||
|
@ -48,6 +48,7 @@ type DockerCredentialClient struct {
|
||||
|
||||
type DockerCredentialOperations interface {
|
||||
List(opts *types.ListOpts) (*DockerCredentialCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*DockerCredentialCollection, error)
|
||||
Create(opts *DockerCredential) (*DockerCredential, error)
|
||||
Update(existing *DockerCredential, updates interface{}) (*DockerCredential, error)
|
||||
Replace(existing *DockerCredential) (*DockerCredential, error)
|
||||
@ -86,6 +87,23 @@ func (c *DockerCredentialClient) List(opts *types.ListOpts) (*DockerCredentialCo
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *DockerCredentialClient) ListAll(opts *types.ListOpts) (*DockerCredentialCollection, error) {
|
||||
resp := &DockerCredentialCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *DockerCredentialCollection) Next() (*DockerCredentialCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &DockerCredentialCollection{}
|
||||
|
@ -56,6 +56,7 @@ type GatewayClient struct {
|
||||
|
||||
type GatewayOperations interface {
|
||||
List(opts *types.ListOpts) (*GatewayCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*GatewayCollection, error)
|
||||
Create(opts *Gateway) (*Gateway, error)
|
||||
Update(existing *Gateway, updates interface{}) (*Gateway, error)
|
||||
Replace(existing *Gateway) (*Gateway, error)
|
||||
@ -94,6 +95,23 @@ func (c *GatewayClient) List(opts *types.ListOpts) (*GatewayCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *GatewayClient) ListAll(opts *types.ListOpts) (*GatewayCollection, error) {
|
||||
resp := &GatewayCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *GatewayCollection) Next() (*GatewayCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &GatewayCollection{}
|
||||
|
@ -70,6 +70,7 @@ type HorizontalPodAutoscalerClient struct {
|
||||
|
||||
type HorizontalPodAutoscalerOperations interface {
|
||||
List(opts *types.ListOpts) (*HorizontalPodAutoscalerCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*HorizontalPodAutoscalerCollection, error)
|
||||
Create(opts *HorizontalPodAutoscaler) (*HorizontalPodAutoscaler, error)
|
||||
Update(existing *HorizontalPodAutoscaler, updates interface{}) (*HorizontalPodAutoscaler, error)
|
||||
Replace(existing *HorizontalPodAutoscaler) (*HorizontalPodAutoscaler, error)
|
||||
@ -108,6 +109,23 @@ func (c *HorizontalPodAutoscalerClient) List(opts *types.ListOpts) (*HorizontalP
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *HorizontalPodAutoscalerClient) ListAll(opts *types.ListOpts) (*HorizontalPodAutoscalerCollection, error) {
|
||||
resp := &HorizontalPodAutoscalerCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *HorizontalPodAutoscalerCollection) Next() (*HorizontalPodAutoscalerCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &HorizontalPodAutoscalerCollection{}
|
||||
|
@ -62,6 +62,7 @@ type IngressClient struct {
|
||||
|
||||
type IngressOperations interface {
|
||||
List(opts *types.ListOpts) (*IngressCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*IngressCollection, error)
|
||||
Create(opts *Ingress) (*Ingress, error)
|
||||
Update(existing *Ingress, updates interface{}) (*Ingress, error)
|
||||
Replace(existing *Ingress) (*Ingress, error)
|
||||
@ -100,6 +101,23 @@ func (c *IngressClient) List(opts *types.ListOpts) (*IngressCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *IngressClient) ListAll(opts *types.ListOpts) (*IngressCollection, error) {
|
||||
resp := &IngressCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *IngressCollection) Next() (*IngressCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &IngressCollection{}
|
||||
|
@ -132,6 +132,7 @@ type JobClient struct {
|
||||
|
||||
type JobOperations interface {
|
||||
List(opts *types.ListOpts) (*JobCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*JobCollection, error)
|
||||
Create(opts *Job) (*Job, error)
|
||||
Update(existing *Job, updates interface{}) (*Job, error)
|
||||
Replace(existing *Job) (*Job, error)
|
||||
@ -170,6 +171,23 @@ func (c *JobClient) List(opts *types.ListOpts) (*JobCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *JobClient) ListAll(opts *types.ListOpts) (*JobCollection, error) {
|
||||
resp := &JobCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *JobCollection) Next() (*JobCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &JobCollection{}
|
||||
|
@ -50,6 +50,7 @@ type NamespacedBasicAuthClient struct {
|
||||
|
||||
type NamespacedBasicAuthOperations interface {
|
||||
List(opts *types.ListOpts) (*NamespacedBasicAuthCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NamespacedBasicAuthCollection, error)
|
||||
Create(opts *NamespacedBasicAuth) (*NamespacedBasicAuth, error)
|
||||
Update(existing *NamespacedBasicAuth, updates interface{}) (*NamespacedBasicAuth, error)
|
||||
Replace(existing *NamespacedBasicAuth) (*NamespacedBasicAuth, error)
|
||||
@ -88,6 +89,23 @@ func (c *NamespacedBasicAuthClient) List(opts *types.ListOpts) (*NamespacedBasic
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NamespacedBasicAuthClient) ListAll(opts *types.ListOpts) (*NamespacedBasicAuthCollection, error) {
|
||||
resp := &NamespacedBasicAuthCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NamespacedBasicAuthCollection) Next() (*NamespacedBasicAuthCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NamespacedBasicAuthCollection{}
|
||||
|
@ -70,6 +70,7 @@ type NamespacedCertificateClient struct {
|
||||
|
||||
type NamespacedCertificateOperations interface {
|
||||
List(opts *types.ListOpts) (*NamespacedCertificateCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NamespacedCertificateCollection, error)
|
||||
Create(opts *NamespacedCertificate) (*NamespacedCertificate, error)
|
||||
Update(existing *NamespacedCertificate, updates interface{}) (*NamespacedCertificate, error)
|
||||
Replace(existing *NamespacedCertificate) (*NamespacedCertificate, error)
|
||||
@ -108,6 +109,23 @@ func (c *NamespacedCertificateClient) List(opts *types.ListOpts) (*NamespacedCer
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NamespacedCertificateClient) ListAll(opts *types.ListOpts) (*NamespacedCertificateCollection, error) {
|
||||
resp := &NamespacedCertificateCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NamespacedCertificateCollection) Next() (*NamespacedCertificateCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NamespacedCertificateCollection{}
|
||||
|
@ -48,6 +48,7 @@ type NamespacedDockerCredentialClient struct {
|
||||
|
||||
type NamespacedDockerCredentialOperations interface {
|
||||
List(opts *types.ListOpts) (*NamespacedDockerCredentialCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NamespacedDockerCredentialCollection, error)
|
||||
Create(opts *NamespacedDockerCredential) (*NamespacedDockerCredential, error)
|
||||
Update(existing *NamespacedDockerCredential, updates interface{}) (*NamespacedDockerCredential, error)
|
||||
Replace(existing *NamespacedDockerCredential) (*NamespacedDockerCredential, error)
|
||||
@ -86,6 +87,23 @@ func (c *NamespacedDockerCredentialClient) List(opts *types.ListOpts) (*Namespac
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NamespacedDockerCredentialClient) ListAll(opts *types.ListOpts) (*NamespacedDockerCredentialCollection, error) {
|
||||
resp := &NamespacedDockerCredentialCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NamespacedDockerCredentialCollection) Next() (*NamespacedDockerCredentialCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NamespacedDockerCredentialCollection{}
|
||||
|
@ -52,6 +52,7 @@ type NamespacedSecretClient struct {
|
||||
|
||||
type NamespacedSecretOperations interface {
|
||||
List(opts *types.ListOpts) (*NamespacedSecretCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NamespacedSecretCollection, error)
|
||||
Create(opts *NamespacedSecret) (*NamespacedSecret, error)
|
||||
Update(existing *NamespacedSecret, updates interface{}) (*NamespacedSecret, error)
|
||||
Replace(existing *NamespacedSecret) (*NamespacedSecret, error)
|
||||
@ -90,6 +91,23 @@ func (c *NamespacedSecretClient) List(opts *types.ListOpts) (*NamespacedSecretCo
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NamespacedSecretClient) ListAll(opts *types.ListOpts) (*NamespacedSecretCollection, error) {
|
||||
resp := &NamespacedSecretCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NamespacedSecretCollection) Next() (*NamespacedSecretCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NamespacedSecretCollection{}
|
||||
|
@ -54,6 +54,7 @@ type NamespacedServiceAccountTokenClient struct {
|
||||
|
||||
type NamespacedServiceAccountTokenOperations interface {
|
||||
List(opts *types.ListOpts) (*NamespacedServiceAccountTokenCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NamespacedServiceAccountTokenCollection, error)
|
||||
Create(opts *NamespacedServiceAccountToken) (*NamespacedServiceAccountToken, error)
|
||||
Update(existing *NamespacedServiceAccountToken, updates interface{}) (*NamespacedServiceAccountToken, error)
|
||||
Replace(existing *NamespacedServiceAccountToken) (*NamespacedServiceAccountToken, error)
|
||||
@ -92,6 +93,23 @@ func (c *NamespacedServiceAccountTokenClient) List(opts *types.ListOpts) (*Names
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NamespacedServiceAccountTokenClient) ListAll(opts *types.ListOpts) (*NamespacedServiceAccountTokenCollection, error) {
|
||||
resp := &NamespacedServiceAccountTokenCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NamespacedServiceAccountTokenCollection) Next() (*NamespacedServiceAccountTokenCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NamespacedServiceAccountTokenCollection{}
|
||||
|
@ -50,6 +50,7 @@ type NamespacedSSHAuthClient struct {
|
||||
|
||||
type NamespacedSSHAuthOperations interface {
|
||||
List(opts *types.ListOpts) (*NamespacedSSHAuthCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*NamespacedSSHAuthCollection, error)
|
||||
Create(opts *NamespacedSSHAuth) (*NamespacedSSHAuth, error)
|
||||
Update(existing *NamespacedSSHAuth, updates interface{}) (*NamespacedSSHAuth, error)
|
||||
Replace(existing *NamespacedSSHAuth) (*NamespacedSSHAuth, error)
|
||||
@ -88,6 +89,23 @@ func (c *NamespacedSSHAuthClient) List(opts *types.ListOpts) (*NamespacedSSHAuth
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *NamespacedSSHAuthClient) ListAll(opts *types.ListOpts) (*NamespacedSSHAuthCollection, error) {
|
||||
resp := &NamespacedSSHAuthCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *NamespacedSSHAuthCollection) Next() (*NamespacedSSHAuthCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &NamespacedSSHAuthCollection{}
|
||||
|
@ -66,6 +66,7 @@ type PersistentVolumeClaimClient struct {
|
||||
|
||||
type PersistentVolumeClaimOperations interface {
|
||||
List(opts *types.ListOpts) (*PersistentVolumeClaimCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PersistentVolumeClaimCollection, error)
|
||||
Create(opts *PersistentVolumeClaim) (*PersistentVolumeClaim, error)
|
||||
Update(existing *PersistentVolumeClaim, updates interface{}) (*PersistentVolumeClaim, error)
|
||||
Replace(existing *PersistentVolumeClaim) (*PersistentVolumeClaim, error)
|
||||
@ -104,6 +105,23 @@ func (c *PersistentVolumeClaimClient) List(opts *types.ListOpts) (*PersistentVol
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PersistentVolumeClaimClient) ListAll(opts *types.ListOpts) (*PersistentVolumeClaimCollection, error) {
|
||||
resp := &PersistentVolumeClaimCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PersistentVolumeClaimCollection) Next() (*PersistentVolumeClaimCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PersistentVolumeClaimCollection{}
|
||||
|
@ -78,6 +78,7 @@ type PipelineClient struct {
|
||||
|
||||
type PipelineOperations interface {
|
||||
List(opts *types.ListOpts) (*PipelineCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PipelineCollection, error)
|
||||
Create(opts *Pipeline) (*Pipeline, error)
|
||||
Update(existing *Pipeline, updates interface{}) (*Pipeline, error)
|
||||
Replace(existing *Pipeline) (*Pipeline, error)
|
||||
@ -124,6 +125,23 @@ func (c *PipelineClient) List(opts *types.ListOpts) (*PipelineCollection, error)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PipelineClient) ListAll(opts *types.ListOpts) (*PipelineCollection, error) {
|
||||
resp := &PipelineCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PipelineCollection) Next() (*PipelineCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PipelineCollection{}
|
||||
|
@ -92,6 +92,7 @@ type PipelineExecutionClient struct {
|
||||
|
||||
type PipelineExecutionOperations interface {
|
||||
List(opts *types.ListOpts) (*PipelineExecutionCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PipelineExecutionCollection, error)
|
||||
Create(opts *PipelineExecution) (*PipelineExecution, error)
|
||||
Update(existing *PipelineExecution, updates interface{}) (*PipelineExecution, error)
|
||||
Replace(existing *PipelineExecution) (*PipelineExecution, error)
|
||||
@ -134,6 +135,23 @@ func (c *PipelineExecutionClient) List(opts *types.ListOpts) (*PipelineExecution
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PipelineExecutionClient) ListAll(opts *types.ListOpts) (*PipelineExecutionCollection, error) {
|
||||
resp := &PipelineExecutionCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PipelineExecutionCollection) Next() (*PipelineExecutionCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PipelineExecutionCollection{}
|
||||
|
@ -50,6 +50,7 @@ type PipelineSettingClient struct {
|
||||
|
||||
type PipelineSettingOperations interface {
|
||||
List(opts *types.ListOpts) (*PipelineSettingCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PipelineSettingCollection, error)
|
||||
Create(opts *PipelineSetting) (*PipelineSetting, error)
|
||||
Update(existing *PipelineSetting, updates interface{}) (*PipelineSetting, error)
|
||||
Replace(existing *PipelineSetting) (*PipelineSetting, error)
|
||||
@ -88,6 +89,23 @@ func (c *PipelineSettingClient) List(opts *types.ListOpts) (*PipelineSettingColl
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PipelineSettingClient) ListAll(opts *types.ListOpts) (*PipelineSettingCollection, error) {
|
||||
resp := &PipelineSettingCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PipelineSettingCollection) Next() (*PipelineSettingCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PipelineSettingCollection{}
|
||||
|
@ -126,6 +126,7 @@ type PodClient struct {
|
||||
|
||||
type PodOperations interface {
|
||||
List(opts *types.ListOpts) (*PodCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PodCollection, error)
|
||||
Create(opts *Pod) (*Pod, error)
|
||||
Update(existing *Pod, updates interface{}) (*Pod, error)
|
||||
Replace(existing *Pod) (*Pod, error)
|
||||
@ -164,6 +165,23 @@ func (c *PodClient) List(opts *types.ListOpts) (*PodCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PodClient) ListAll(opts *types.ListOpts) (*PodCollection, error) {
|
||||
resp := &PodCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PodCollection) Next() (*PodCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PodCollection{}
|
||||
|
@ -148,6 +148,7 @@ type PrometheusClient struct {
|
||||
|
||||
type PrometheusOperations interface {
|
||||
List(opts *types.ListOpts) (*PrometheusCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PrometheusCollection, error)
|
||||
Create(opts *Prometheus) (*Prometheus, error)
|
||||
Update(existing *Prometheus, updates interface{}) (*Prometheus, error)
|
||||
Replace(existing *Prometheus) (*Prometheus, error)
|
||||
@ -186,6 +187,23 @@ func (c *PrometheusClient) List(opts *types.ListOpts) (*PrometheusCollection, er
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PrometheusClient) ListAll(opts *types.ListOpts) (*PrometheusCollection, error) {
|
||||
resp := &PrometheusCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PrometheusCollection) Next() (*PrometheusCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PrometheusCollection{}
|
||||
|
@ -46,6 +46,7 @@ type PrometheusRuleClient struct {
|
||||
|
||||
type PrometheusRuleOperations interface {
|
||||
List(opts *types.ListOpts) (*PrometheusRuleCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*PrometheusRuleCollection, error)
|
||||
Create(opts *PrometheusRule) (*PrometheusRule, error)
|
||||
Update(existing *PrometheusRule, updates interface{}) (*PrometheusRule, error)
|
||||
Replace(existing *PrometheusRule) (*PrometheusRule, error)
|
||||
@ -84,6 +85,23 @@ func (c *PrometheusRuleClient) List(opts *types.ListOpts) (*PrometheusRuleCollec
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *PrometheusRuleClient) ListAll(opts *types.ListOpts) (*PrometheusRuleCollection, error) {
|
||||
resp := &PrometheusRuleCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *PrometheusRuleCollection) Next() (*PrometheusRuleCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &PrometheusRuleCollection{}
|
||||
|
@ -132,6 +132,7 @@ type ReplicaSetClient struct {
|
||||
|
||||
type ReplicaSetOperations interface {
|
||||
List(opts *types.ListOpts) (*ReplicaSetCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ReplicaSetCollection, error)
|
||||
Create(opts *ReplicaSet) (*ReplicaSet, error)
|
||||
Update(existing *ReplicaSet, updates interface{}) (*ReplicaSet, error)
|
||||
Replace(existing *ReplicaSet) (*ReplicaSet, error)
|
||||
@ -170,6 +171,23 @@ func (c *ReplicaSetClient) List(opts *types.ListOpts) (*ReplicaSetCollection, er
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ReplicaSetClient) ListAll(opts *types.ListOpts) (*ReplicaSetCollection, error) {
|
||||
resp := &ReplicaSetCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ReplicaSetCollection) Next() (*ReplicaSetCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ReplicaSetCollection{}
|
||||
|
@ -132,6 +132,7 @@ type ReplicationControllerClient struct {
|
||||
|
||||
type ReplicationControllerOperations interface {
|
||||
List(opts *types.ListOpts) (*ReplicationControllerCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*ReplicationControllerCollection, error)
|
||||
Create(opts *ReplicationController) (*ReplicationController, error)
|
||||
Update(existing *ReplicationController, updates interface{}) (*ReplicationController, error)
|
||||
Replace(existing *ReplicationController) (*ReplicationController, error)
|
||||
@ -170,6 +171,23 @@ func (c *ReplicationControllerClient) List(opts *types.ListOpts) (*ReplicationCo
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *ReplicationControllerClient) ListAll(opts *types.ListOpts) (*ReplicationControllerCollection, error) {
|
||||
resp := &ReplicationControllerCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *ReplicationControllerCollection) Next() (*ReplicationControllerCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &ReplicationControllerCollection{}
|
||||
|
@ -52,6 +52,7 @@ type SecretClient struct {
|
||||
|
||||
type SecretOperations interface {
|
||||
List(opts *types.ListOpts) (*SecretCollection, error)
|
||||
ListAll(opts *types.ListOpts) (*SecretCollection, error)
|
||||
Create(opts *Secret) (*Secret, error)
|
||||
Update(existing *Secret, updates interface{}) (*Secret, error)
|
||||
Replace(existing *Secret) (*Secret, error)
|
||||
@ -90,6 +91,23 @@ func (c *SecretClient) List(opts *types.ListOpts) (*SecretCollection, error) {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (c *SecretClient) ListAll(opts *types.ListOpts) (*SecretCollection, error) {
|
||||
resp := &SecretCollection{}
|
||||
resp, err := c.List(opts)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
data := resp.Data
|
||||
for resp, err = resp.Next(); resp != nil && err == nil; resp, err = resp.Next() {
|
||||
data = append(data, resp.Data...)
|
||||
}
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
resp.Data = data
|
||||
return resp, err
|
||||
}
|
||||
|
||||
func (cc *SecretCollection) Next() (*SecretCollection, error) {
|
||||
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
|
||||
resp := &SecretCollection{}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user