Vendor main dependencies.
This commit is contained in:
parent
49a09ab7dd
commit
dd5e3fba01
2738 changed files with 1045689 additions and 0 deletions
36
vendor/github.com/rancher/go-rancher/client/client.go
generated
vendored
Normal file
36
vendor/github.com/rancher/go-rancher/client/client.go
generated
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
package client
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
type RancherBaseClientImpl struct {
|
||||
Opts *ClientOpts
|
||||
Schemas *Schemas
|
||||
Types map[string]Schema
|
||||
}
|
||||
|
||||
type RancherBaseClient interface {
|
||||
Websocket(string, map[string][]string) (*websocket.Conn, *http.Response, error)
|
||||
List(string, *ListOpts, interface{}) error
|
||||
Post(string, interface{}, interface{}) error
|
||||
GetLink(Resource, string, interface{}) error
|
||||
Create(string, interface{}, interface{}) error
|
||||
Update(string, *Resource, interface{}, interface{}) error
|
||||
ById(string, string, interface{}) error
|
||||
Delete(*Resource) error
|
||||
Reload(*Resource, interface{}) error
|
||||
Action(string, string, *Resource, interface{}, interface{}) error
|
||||
|
||||
doGet(string, *ListOpts, interface{}) error
|
||||
doList(string, *ListOpts, interface{}) error
|
||||
doNext(string, interface{}) error
|
||||
doModify(string, string, interface{}, interface{}) error
|
||||
doCreate(string, interface{}, interface{}) error
|
||||
doUpdate(string, *Resource, interface{}, interface{}) error
|
||||
doById(string, string, interface{}) error
|
||||
doResourceDelete(string, *Resource) error
|
||||
doAction(string, string, *Resource, interface{}, interface{}) error
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue