go-redfish/api/service_interface.go
Alexander Hughes 3ab47e28ba Update module to point to opendev
This patch updates documentation and the go-redfish module to change
references of 'github.com/Nordix/' to 'opendev.org/airship/'

Change-Id: I9ceddcb8a6ed6c888a3f6e143ada730718999100
2020-01-10 18:52:54 +00:00

93 lines
1.3 KiB
Go

package client
import (
"context"
"net/http"
client "opendev.org/airship/go-redfish/client"
)
//go:generate mockery -name=RedfishAPI -output ./mocks
type RedfishAPI interface {
EjectVirtualMedia(context.Context,
string,
string,
map[string]interface{},
) (client.RedfishError,
*http.Response,
error,
)
GetManager(context.Context,
string,
) (client.Manager,
*http.Response,
error,
)
GetManagerVirtualMedia(context.Context,
string,
string,
) (client.VirtualMedia,
*http.Response,
error,
)
GetRoot(context.Context,
) (client.Root,
*http.Response,
error,
)
GetSystem(context.Context,
string,
) (client.ComputerSystem,
*http.Response,
error,
)
InsertVirtualMedia(context.Context,
string,
string,
client.InsertMediaRequestBody,
) (client.RedfishError,
*http.Response,
error,
)
ListManagerVirtualMedia(context.Context,
string,
) (client.Collection,
*http.Response,
error,
)
ListManagers(context.Context,
) (client.Collection,
*http.Response,
error,
)
ListSystems(context.Context,
) (client.Collection,
*http.Response,
error,
)
ResetSystem(context.Context,
string,
client.ResetRequestBody,
) (client.RedfishError,
*http.Response,
error,
)
SetSystem(context.Context,
string,
client.ComputerSystem,
) (client.ComputerSystem,
*http.Response,
error,
)
}