Documentation
¶
Index ¶
- func ConfigDefaultElbClient(ops ...Option) (err error)
- func CreateElbAcl(context context.Context, req *elb.CreateElbACLRequest, ...) (resp *elb.CreateElbACLResponse, rawResponse *protocol.Response, err error)
- func GetElbAcl(context context.Context, req *elb.GetElbACLRequest, ...) (resp *elb.GetElbACLResponse, rawResponse *protocol.Response, err error)
- func ListElbAcl(context context.Context, req *elb.ListElbACLRequest, ...) (resp *elb.ListElbACLResponse, rawResponse *protocol.Response, err error)
- type ClientSet
- type ElbClient
- type HttpClient
- type Option
- func WithClient(client client.Doer) Option
- func WithClientConfig(cfg *apiCfg.OpenapiConfig) Option
- func WithClientMiddleware(mws ...cli.Middleware) Option
- func WithClientOption(opt ...config.ClientOption) Option
- func WithHeader(header http.Header) Option
- func WithHostUrl(HostUrl string) Option
- func WithResponseResultDecider(decider ResponseResultDecider) Option
- type Options
- type ResponseResultDecider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDefaultElbClient ¶
func CreateElbAcl ¶
func CreateElbAcl(context context.Context, req *elb.CreateElbACLRequest, reqOpt ...config.RequestOption) (resp *elb.CreateElbACLResponse, rawResponse *protocol.Response, err error)
func GetElbAcl ¶
func GetElbAcl(context context.Context, req *elb.GetElbACLRequest, reqOpt ...config.RequestOption) (resp *elb.GetElbACLResponse, rawResponse *protocol.Response, err error)
func ListElbAcl ¶
func ListElbAcl(context context.Context, req *elb.ListElbACLRequest, reqOpt ...config.RequestOption) (resp *elb.ListElbACLResponse, rawResponse *protocol.Response, err error)
Types ¶
type ElbClient ¶
type ElbClient interface {
CreateElbAcl(context context.Context, req *elb.CreateElbACLRequest, reqOpt ...config.RequestOption) (resp *elb.CreateElbACLResponse, rawResponse *protocol.Response, err error)
GetElbAcl(context context.Context, req *elb.GetElbACLRequest, reqOpt ...config.RequestOption) (resp *elb.GetElbACLResponse, rawResponse *protocol.Response, err error)
ListElbAcl(context context.Context, req *elb.ListElbACLRequest, reqOpt ...config.RequestOption) (resp *elb.ListElbACLResponse, rawResponse *protocol.Response, err error)
}
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
HttpClient underlying client
func NewHttpClient ¶
func NewHttpClient(opts *Options) (*HttpClient, error)
func (*HttpClient) Execute ¶
func (c *HttpClient) Execute(req *request) (*response, error)
func (*HttpClient) Use ¶
func (c *HttpClient) Use(mws ...cli.Middleware) error
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
Option Configuration of client
func WithClient ¶
WithClient is used to register a custom crafter client
func WithClientConfig ¶
func WithClientConfig(cfg *apiCfg.OpenapiConfig) Option
WithClientConfig is used to pass openapi configuration for the client
func WithClientMiddleware ¶
func WithClientMiddleware(mws ...cli.Middleware) Option
WithClientMiddleware is used to register the middleware for the crafter client
func WithClientOption ¶
func WithClientOption(opt ...config.ClientOption) Option
WithClientOption is used to pass configuration for the crafter client
func WithHeader ¶
WithHeader is used to add the default header, which is carried by every request
func WithHostUrl ¶
func WithResponseResultDecider ¶
func WithResponseResultDecider(decider ResponseResultDecider) Option
WithResponseResultDecider configure custom deserialization of http response to response struct
type ResponseResultDecider ¶
type ResponseResultDecider func(*response) error
ResponseResultDecider Definition of global data and types.
Click to show internal directories.
Click to hide internal directories.