Documentation ¶
Index ¶
- Variables
- func ComposeAPIDefinitions() []*restful.WebService
- func GenericResourceProxy(ws *restful.WebService, gvr schema.GroupVersionResource, ...) (*restful.WebService, error)
- func GroupBasePath(gvr schema.GroupVersion) string
- func GroupVersionBasePath(gvr schema.GroupVersion) string
- func GroupVersionProxyBase(gv schema.GroupVersion) (*restful.WebService, error)
- func NameParam(ws *restful.WebService) *restful.Parameter
- func NamespaceParam(ws *restful.WebService) *restful.Parameter
- func Noop(request *restful.Request, response *restful.Response)
- func ResourceBasePath(gvr schema.GroupVersionResource) string
- func ResourcePath(gvr schema.GroupVersionResource) string
- func ResourceProxyAutodiscovery(gvr schema.GroupVersionResource) (*restful.WebService, error)
- func SubResourcePath(subResource string) string
- type MockVirtApiAuthorizor
- func (_m *MockVirtApiAuthorizor) AddExtraPrefixHeaders(header []string)
- func (_m *MockVirtApiAuthorizor) AddGroupHeaders(header []string)
- func (_m *MockVirtApiAuthorizor) AddUserHeaders(header []string)
- func (_m *MockVirtApiAuthorizor) Authorize(req *go_restful.Request) (bool, string, error)
- func (_m *MockVirtApiAuthorizor) EXPECT() *_MockVirtApiAuthorizorRecorder
- func (_m *MockVirtApiAuthorizor) GetExtraPrefixHeaders() []string
- func (_m *MockVirtApiAuthorizor) GetGroupHeaders() []string
- func (_m *MockVirtApiAuthorizor) GetUserHeaders() []string
- type SubresourceAPIApp
- func (app *SubresourceAPIApp) ConsoleRequestHandler(request *restful.Request, response *restful.Response)
- func (app *SubresourceAPIApp) RestartVMRequestHandler(request *restful.Request, response *restful.Response)
- func (app *SubresourceAPIApp) VNCRequestHandler(request *restful.Request, response *restful.Response)
- type VirtApiAuthorizor
Constants ¶
This section is empty.
Variables ¶
View Source
var CONSOLE = requestType{/* contains filtered or unexported fields */}
View Source
var VNC = requestType{/* contains filtered or unexported fields */}
Functions ¶
func ComposeAPIDefinitions ¶ added in v0.10.0
func ComposeAPIDefinitions() []*restful.WebService
func GenericResourceProxy ¶
func GenericResourceProxy(ws *restful.WebService, gvr schema.GroupVersionResource, objPointer runtime.Object, objKind string, objListPointer runtime.Object) (*restful.WebService, error)
func GroupBasePath ¶
func GroupBasePath(gvr schema.GroupVersion) string
func GroupVersionBasePath ¶
func GroupVersionBasePath(gvr schema.GroupVersion) string
func GroupVersionProxyBase ¶
func GroupVersionProxyBase(gv schema.GroupVersion) (*restful.WebService, error)
func NamespaceParam ¶
func NamespaceParam(ws *restful.WebService) *restful.Parameter
func ResourceBasePath ¶
func ResourceBasePath(gvr schema.GroupVersionResource) string
func ResourcePath ¶
func ResourcePath(gvr schema.GroupVersionResource) string
func ResourceProxyAutodiscovery ¶
func ResourceProxyAutodiscovery(gvr schema.GroupVersionResource) (*restful.WebService, error)
func SubResourcePath ¶
Types ¶
type MockVirtApiAuthorizor ¶ added in v0.12.0
type MockVirtApiAuthorizor struct {
// contains filtered or unexported fields
}
Mock of VirtApiAuthorizor interface
func NewMockVirtApiAuthorizor ¶ added in v0.12.0
func NewMockVirtApiAuthorizor(ctrl *gomock.Controller) *MockVirtApiAuthorizor
func (*MockVirtApiAuthorizor) AddExtraPrefixHeaders ¶ added in v0.12.0
func (_m *MockVirtApiAuthorizor) AddExtraPrefixHeaders(header []string)
func (*MockVirtApiAuthorizor) AddGroupHeaders ¶ added in v0.12.0
func (_m *MockVirtApiAuthorizor) AddGroupHeaders(header []string)
func (*MockVirtApiAuthorizor) AddUserHeaders ¶ added in v0.12.0
func (_m *MockVirtApiAuthorizor) AddUserHeaders(header []string)
func (*MockVirtApiAuthorizor) Authorize ¶ added in v0.12.0
func (_m *MockVirtApiAuthorizor) Authorize(req *go_restful.Request) (bool, string, error)
func (*MockVirtApiAuthorizor) EXPECT ¶ added in v0.12.0
func (_m *MockVirtApiAuthorizor) EXPECT() *_MockVirtApiAuthorizorRecorder
func (*MockVirtApiAuthorizor) GetExtraPrefixHeaders ¶ added in v0.12.0
func (_m *MockVirtApiAuthorizor) GetExtraPrefixHeaders() []string
func (*MockVirtApiAuthorizor) GetGroupHeaders ¶ added in v0.12.0
func (_m *MockVirtApiAuthorizor) GetGroupHeaders() []string
func (*MockVirtApiAuthorizor) GetUserHeaders ¶ added in v0.12.0
func (_m *MockVirtApiAuthorizor) GetUserHeaders() []string
type SubresourceAPIApp ¶ added in v0.4.0
type SubresourceAPIApp struct {
VirtCli kubecli.KubevirtClient
}
func (*SubresourceAPIApp) ConsoleRequestHandler ¶ added in v0.4.0
func (app *SubresourceAPIApp) ConsoleRequestHandler(request *restful.Request, response *restful.Response)
func (*SubresourceAPIApp) RestartVMRequestHandler ¶ added in v0.11.0
func (app *SubresourceAPIApp) RestartVMRequestHandler(request *restful.Request, response *restful.Response)
func (*SubresourceAPIApp) VNCRequestHandler ¶ added in v0.4.0
func (app *SubresourceAPIApp) VNCRequestHandler(request *restful.Request, response *restful.Response)
type VirtApiAuthorizor ¶ added in v0.4.0
type VirtApiAuthorizor interface { Authorize(req *restful.Request) (bool, string, error) AddUserHeaders(header []string) GetUserHeaders() []string AddGroupHeaders(header []string) GetGroupHeaders() []string AddExtraPrefixHeaders(header []string) GetExtraPrefixHeaders() []string }
func NewAuthorizor ¶ added in v0.4.0
func NewAuthorizor() (VirtApiAuthorizor, error)
func NewAuthorizorFromConfig ¶ added in v0.4.0
func NewAuthorizorFromConfig(config *restclient.Config) (VirtApiAuthorizor, error)
Click to show internal directories.
Click to hide internal directories.