Documentation ¶
Overview ¶
Package v1 provides the gpud v1 client for the server.
Index ¶
- func BlockUntilServerReady(ctx context.Context, addr string, opts ...OpOption) error
- func CheckHealthz(ctx context.Context, addr string, opts ...OpOption) error
- func GetComponents(ctx context.Context, addr string, opts ...OpOption) ([]string, error)
- func GetEvents(ctx context.Context, addr string, opts ...OpOption) (v1.LeptonEvents, error)
- func GetInfo(ctx context.Context, addr string, opts ...OpOption) (v1.LeptonInfo, error)
- func GetMetrics(ctx context.Context, addr string, opts ...OpOption) (v1.LeptonMetrics, error)
- func GetStates(ctx context.Context, addr string, opts ...OpOption) (v1.LeptonStates, error)
- func ReadComponents(rd io.Reader, opts ...OpOption) ([]string, error)
- func ReadEvents(rd io.Reader, opts ...OpOption) (v1.LeptonEvents, error)
- func ReadInfo(rd io.Reader, opts ...OpOption) (v1.LeptonInfo, error)
- func ReadMetrics(rd io.Reader, opts ...OpOption) (v1.LeptonMetrics, error)
- func ReadStates(rd io.Reader, opts ...OpOption) (v1.LeptonStates, error)
- type Op
- type OpOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockUntilServerReady ¶
func GetComponents ¶
func GetMetrics ¶
func ReadEvents ¶
func ReadMetrics ¶
func ReadStates ¶
Types ¶
type OpOption ¶
type OpOption func(*Op)
func WithAcceptEncodingGzip ¶
func WithAcceptEncodingGzip() OpOption
WithAcceptEncodingGzip requests gzip encoding for the response.
func WithCheckInterval ¶
func WithComponent ¶ added in v0.0.2
func WithHTTPClient ¶
func WithRequestContentTypeJSON ¶
func WithRequestContentTypeJSON() OpOption
WithRequestContentTypeJSON sets the request content type to JSON.
func WithRequestContentTypeYAML ¶
func WithRequestContentTypeYAML() OpOption
WithRequestContentTypeYAML sets the request content type to YAML.
Click to show internal directories.
Click to hide internal directories.