Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Health(ctx context.Context) (*legacymodel.OverallHealthStatus, error)
}
type RESTClient ¶
type RESTClient struct { // The legacy swagger client LegacyClient *client.Harbor // The new client of the harbor v2 API V2Client *v2client.Harbor // AuthInfo contains the auth information that is provided on API calls. AuthInfo runtime.ClientAuthInfoWriter }
RESTClient is a subclient for handling system related actions.
func NewClient ¶
func NewClient(legacyClient *client.Harbor, v2Client *v2client.Harbor, authInfo runtime.ClientAuthInfoWriter) *RESTClient
func (*RESTClient) Health ¶
func (c *RESTClient) Health(ctx context.Context) (*legacymodel.OverallHealthStatus, error)
Health reports Harbor system health information.
Click to show internal directories.
Click to hide internal directories.