Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheItem ¶
type CacheItem struct { Paths []CacheItemPath `json:"paths"` CommonName string `json:"common_name"` NotAfter int64 `json:"not_after"` }
type CacheItemPath ¶
type CacheItems ¶
type CacheItems []CacheItem
func (CacheItems) Filter ¶
func (c CacheItems) Filter(filter CacheItemFilter) CacheItems
Filter only works if the given CacheItems is sorted by NotAfter
type Client ¶
func (*Client) GetCache ¶
func (c *Client) GetCache() (CacheItems, error)
GetCache gets the cache list
func (*Client) GetSchedulerState ¶
func (c *Client) GetSchedulerState() (*GetSchedulerResponse, error)
func (*Client) Info ¶
func (c *Client) Info() (*InfoResponse, error)
func (*Client) RefreshCache ¶
RefreshCache makes a request to asynchronously refresh the server cache
func (*Client) UserpassAuth ¶
UserpassAuth attempts to authenticate with the doomsday server. If successful, the response is stored into the client
type ErrBadRequest ¶
type ErrBadRequest struct {
// contains filtered or unexported fields
}
func (*ErrBadRequest) Error ¶
func (e *ErrBadRequest) Error() string
type ErrInternalServer ¶
type ErrInternalServer struct {
// contains filtered or unexported fields
}
func (*ErrInternalServer) Error ¶
func (e *ErrInternalServer) Error() string
type ErrUnauthorized ¶
type ErrUnauthorized struct {
// contains filtered or unexported fields
}
func (*ErrUnauthorized) Error ¶
func (e *ErrUnauthorized) Error() string
type GetCacheResponse ¶
type GetCacheResponse struct {
Content CacheItems `json:"content"`
}
type GetSchedulerResponse ¶
type GetSchedulerResponse struct { Running []GetSchedulerTask `json:"running"` Pending []GetSchedulerTask `json:"pending"` Workers []GetSchedulerWorker `json:"workers"` }
type GetSchedulerTask ¶
type GetSchedulerWorker ¶
type InfoResponse ¶
Click to show internal directories.
Click to hide internal directories.