Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Update to zedcloud 10.9.0 #20

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 24 additions & 20 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,49 @@ module github.com/zededa/zedcloud-api
go 1.19

require (
github.com/go-openapi/errors v0.20.1
github.com/go-openapi/runtime v0.19.31
github.com/go-openapi/strfmt v0.20.2
github.com/go-openapi/swag v0.19.15
github.com/go-openapi/validate v0.20.2
github.com/go-openapi/errors v0.20.4
github.com/go-openapi/runtime v0.26.0
github.com/go-openapi/strfmt v0.21.7
github.com/go-openapi/swag v0.22.4
github.com/go-openapi/validate v0.22.1
github.com/go-test/deep v1.0.7
github.com/spf13/cobra v0.0.3
github.com/spf13/viper v1.8.1
golang.org/x/net v0.7.0
golang.org/x/net v0.15.0
)

require (
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/go-openapi/analysis v0.20.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.5 // indirect
github.com/go-openapi/loads v0.20.2 // indirect
github.com/go-openapi/spec v0.20.3 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/analysis v0.21.4 // indirect
github.com/go-openapi/jsonpointer v0.20.0 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/loads v0.21.2 // indirect
github.com/go-openapi/spec v0.20.9 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pelletier/go-toml v1.9.3 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
go.mongodb.org/mongo-driver v1.5.1 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
go.mongodb.org/mongo-driver v1.12.1 // indirect
go.opentelemetry.io/otel v1.18.0 // indirect
go.opentelemetry.io/otel/metric v1.18.0 // indirect
go.opentelemetry.io/otel/trace v1.18.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/text v0.13.0 // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
266 changes: 101 additions & 165 deletions go.sum

Large diffs are not rendered by default.

122 changes: 122 additions & 0 deletions swagger_client/.go.bkp
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
// Code generated by go-swagger; DO NOT EDIT.

package swagger_client

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
"github.com/go-openapi/strfmt"

"github.com/zededa/zedcloud-api/swagger_client/edge_network_configuration"
"github.com/zededa/zedcloud-api/swagger_client/edge_network_instance_configuration"
"github.com/zededa/zedcloud-api/swagger_client/edge_network_instance_status"
)

// Default zedcloudapi HTTP client.
var Default = NewHTTPClient(nil)

const (
// DefaultHost is the default Host
// found in Meta (info) section of spec file
DefaultHost string = "zedcontrol.zededa.net"
// DefaultBasePath is the default BasePath
// found in Meta (info) section of spec file
DefaultBasePath string = "/api"
)

// DefaultSchemes are the default schemes found in Meta (info) section of spec file
var DefaultSchemes = []string{"https"}

// NewHTTPClient creates a new zedcloudapi HTTP client.
func NewHTTPClient(formats strfmt.Registry) *Zedcloudapi {
return NewHTTPClientWithConfig(formats, nil)
}

// NewHTTPClientWithConfig creates a new zedcloudapi HTTP client,
// using a customizable transport config.
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Zedcloudapi {
// ensure nullable parameters have default
if cfg == nil {
cfg = DefaultTransportConfig()
}

// create transport and client
transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes)
return New(transport, formats)
}

// New creates a new zedcloudapi client
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Zedcloudapi {
// ensure nullable parameters have default
if formats == nil {
formats = strfmt.Default
}

cli := new(Zedcloudapi)
cli.Transport = transport
cli.EdgeNetworkConfiguration = edge_network_configuration.New(transport, formats)
cli.EdgeNetworkInstanceConfiguration = edge_network_instance_configuration.New(transport, formats)
cli.EdgeNetworkInstanceStatus = edge_network_instance_status.New(transport, formats)
return cli
}

// DefaultTransportConfig creates a TransportConfig with the
// default settings taken from the meta section of the spec file.
func DefaultTransportConfig() *TransportConfig {
return &TransportConfig{
Host: DefaultHost,
BasePath: DefaultBasePath,
Schemes: DefaultSchemes,
}
}

// TransportConfig contains the transport related info,
// found in the meta section of the spec file.
type TransportConfig struct {
Host string
BasePath string
Schemes []string
}

// WithHost overrides the default host,
// provided by the meta section of the spec file.
func (cfg *TransportConfig) WithHost(host string) *TransportConfig {
cfg.Host = host
return cfg
}

// WithBasePath overrides the default basePath,
// provided by the meta section of the spec file.
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig {
cfg.BasePath = basePath
return cfg
}

// WithSchemes overrides the default schemes,
// provided by the meta section of the spec file.
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
cfg.Schemes = schemes
return cfg
}

// Zedcloudapi is a client for zedcloudapi
type Zedcloudapi struct {
EdgeNetworkConfiguration edge_network_configuration.ClientService

EdgeNetworkInstanceConfiguration edge_network_instance_configuration.ClientService

EdgeNetworkInstanceStatus edge_network_instance_status.ClientService

Transport runtime.ClientTransport
}

// SetTransport changes the transport on the client and all its subresources
func (c *Zedcloudapi) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
c.EdgeNetworkConfiguration.SetTransport(transport)
c.EdgeNetworkInstanceConfiguration.SetTransport(transport)
c.EdgeNetworkInstanceStatus.SetTransport(transport)
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading