Remove Pilot support

This commit is contained in:
Ludovic Fernandez 2022-09-14 10:56:08 +02:00 committed by GitHub
parent a002ccfce3
commit ab8d7d2e78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 35 additions and 1264 deletions

View file

@ -29,20 +29,19 @@ const (
pluginManifest = ".traefik.yml"
)
const pilotURL = "https://plugin.pilot.traefik.io/public/"
const pluginsURL = "https://plugins.traefik.io/public/"
const (
hashHeader = "X-Plugin-Hash"
tokenHeader = "X-Token"
)
// ClientOptions the options of a Traefik Pilot client.
// ClientOptions the options of a Traefik plugins client.
type ClientOptions struct {
Output string
Token string
}
// Client a Traefik Pilot client.
// Client a Traefik plugins client.
type Client struct {
HTTPClient *http.Client
baseURL *url.URL
@ -54,9 +53,9 @@ type Client struct {
sources string
}
// NewClient creates a new Traefik Pilot client.
// NewClient creates a new Traefik plugins client.
func NewClient(opts ClientOptions) (*Client, error) {
baseURL, err := url.Parse(pilotURL)
baseURL, err := url.Parse(pluginsURL)
if err != nil {
return nil, err
}
@ -87,8 +86,6 @@ func NewClient(opts ClientOptions) (*Client, error) {
goPath: goPath,
sources: filepath.Join(goPath, goPathSrc),
token: opts.Token,
}, nil
}