Versions in this module Expand all Collapse all v0 v0.2.0 Dec 15, 2020 Changes in this version + type APIClient struct + HTTPClient *http.Client + Service *Service + func Connect(ctx context.Context, config ClientConfig) (c *APIClient, err error) + func ConnectDefault(ctx context.Context, endpoint string) (c *APIClient, err error) + func (c *APIClient) Delete(ctx context.Context, url string) (*http.Response, error) + func (c *APIClient) Get(ctx context.Context, url string) (*http.Response, error) + func (c *APIClient) GetSession() (*Session, error) + func (c *APIClient) Logout(ctx context.Context) + func (c *APIClient) Patch(ctx context.Context, url string, payload interface{}) (*http.Response, error) + func (c *APIClient) Post(ctx context.Context, url string, payload interface{}) (*http.Response, error) + func (c *APIClient) Put(ctx context.Context, url string, payload interface{}) (*http.Response, error) + type ClientConfig struct + BasicAuth bool + DumpWriter io.Writer + Endpoint string + HTTPClient *http.Client + Insecure bool + Password string + Session *Session + TLSHandshakeTimeout int + Username string + type Expand struct + ExpandAll bool + Levels bool + Links bool + MaxLevels int + NoLinks bool + type ProtocolFeaturesSupported struct + ExcerptQuery bool + ExpandQuery Expand + FilterQuery bool + OnlyMemberQuery bool + SelectQuery bool + type Service struct + Description string + ODataContext string + ODataID string + ODataType string + Product string + ProtocolFeaturesSupported ProtocolFeaturesSupported + RedfishVersion string + UUID string + Vendor string + func ServiceRoot(ctx context.Context, c common.Client) (*Service, error) + func (serviceroot *Service) AccountService(ctx context.Context) (*redfish.AccountService, error) + func (serviceroot *Service) Chassis(ctx context.Context) ([]*redfish.Chassis, error) + func (serviceroot *Service) CompositionService(ctx context.Context) (*redfish.CompositionService, error) + func (serviceroot *Service) CreateSession(ctx context.Context, username string, password string) (*redfish.AuthToken, error) + func (serviceroot *Service) DeleteSession(ctx context.Context, url string) error + func (serviceroot *Service) EventService(ctx context.Context) (*redfish.EventService, error) + func (serviceroot *Service) Managers(ctx context.Context) ([]*redfish.Manager, error) + func (serviceroot *Service) Sessions(ctx context.Context) ([]*redfish.Session, error) + func (serviceroot *Service) StorageServices(ctx context.Context) ([]*swordfish.StorageService, error) + func (serviceroot *Service) StorageSystems(ctx context.Context) ([]*swordfish.StorageSystem, error) + func (serviceroot *Service) Systems(ctx context.Context) ([]*redfish.ComputerSystem, error) + func (serviceroot *Service) Tasks(ctx context.Context) ([]*redfish.Task, error) + func (serviceroot *Service) UnmarshalJSON(b []byte) error + func (serviceroot *Service) UpdateService(ctx context.Context) (*redfish.UpdateService, error) + type Session struct + ID string + Token string