Documentation
¶
Index ¶
- Variables
- func ConfigDefaultVpcEndpointClient(ops ...Option) (err error)
- func CreateEndpoint(context context.Context, req *vpce.CreateEndpointRequest, ...) (resp *vpce.CreateEndpointResponse, rawResponse *protocol.Response, err error)
- func CreateEndpointWhitelist(context context.Context, req *vpce.CreateEndpointWhitelistRequest, ...) (resp *vpce.CreateEndpointWhitelistResponse, rawResponse *protocol.Response, ...)
- func DeleteEndpoint(context context.Context, req *vpce.DeleteEndpointRequest, ...) (resp *vpce.DeleteEndpointResponse, rawResponse *protocol.Response, err error)
- func DeleteEndpointWhitelist(context context.Context, req *vpce.DeleteEndpointWhitelistRequest, ...) (resp *vpce.DeleteEndpointWhitelistResponse, rawResponse *protocol.Response, ...)
- func GetEndpoint(context context.Context, req *vpce.GetEndpointRequest, ...) (resp *vpce.GetEndpointResponse, rawResponse *protocol.Response, err error)
- func JsonMarshal(val interface{}) string
- func ListEndpoint(context context.Context, req *vpce.ListEndpointRequest, ...) (resp *vpce.ListEndpointResponse, rawResponse *protocol.Response, err error)
- func ListEndpointNew(context context.Context, req *vpce.ListEndpointNewRequest, ...) (resp *vpce.ListEndpointNewResponse, rawResponse *protocol.Response, err error)
- func ListEndpointWhitelist(context context.Context, req *vpce.ListEndpointWhitelistRequest, ...) (resp *vpce.ListEndpointWhitelistResponse, rawResponse *protocol.Response, ...)
- type ClientSet
- 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
- type VpcEndpointClient
Constants ¶
This section is empty.
Variables ¶
View Source
var OptimizeQueryParams = utils.OptimizeQueryParams
Functions ¶
func CreateEndpoint ¶
func CreateEndpoint(context context.Context, req *vpce.CreateEndpointRequest, reqOpt ...config.RequestOption) (resp *vpce.CreateEndpointResponse, rawResponse *protocol.Response, err error)
func CreateEndpointWhitelist ¶
func CreateEndpointWhitelist(context context.Context, req *vpce.CreateEndpointWhitelistRequest, reqOpt ...config.RequestOption) (resp *vpce.CreateEndpointWhitelistResponse, rawResponse *protocol.Response, err error)
func DeleteEndpoint ¶
func DeleteEndpoint(context context.Context, req *vpce.DeleteEndpointRequest, reqOpt ...config.RequestOption) (resp *vpce.DeleteEndpointResponse, rawResponse *protocol.Response, err error)
func DeleteEndpointWhitelist ¶
func DeleteEndpointWhitelist(context context.Context, req *vpce.DeleteEndpointWhitelistRequest, reqOpt ...config.RequestOption) (resp *vpce.DeleteEndpointWhitelistResponse, rawResponse *protocol.Response, err error)
func GetEndpoint ¶
func GetEndpoint(context context.Context, req *vpce.GetEndpointRequest, reqOpt ...config.RequestOption) (resp *vpce.GetEndpointResponse, rawResponse *protocol.Response, err error)
func JsonMarshal ¶ added in v1.0.0
func JsonMarshal(val interface{}) string
func ListEndpoint ¶ added in v0.2.6
func ListEndpoint(context context.Context, req *vpce.ListEndpointRequest, reqOpt ...config.RequestOption) (resp *vpce.ListEndpointResponse, rawResponse *protocol.Response, err error)
func ListEndpointNew ¶ added in v1.0.1
func ListEndpointNew(context context.Context, req *vpce.ListEndpointNewRequest, reqOpt ...config.RequestOption) (resp *vpce.ListEndpointNewResponse, rawResponse *protocol.Response, err error)
func ListEndpointWhitelist ¶
func ListEndpointWhitelist(context context.Context, req *vpce.ListEndpointWhitelistRequest, reqOpt ...config.RequestOption) (resp *vpce.ListEndpointWhitelistResponse, rawResponse *protocol.Response, err error)
Types ¶
type ClientSet ¶
type ClientSet interface {
VpcEndpoint() VpcEndpointClient
}
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.
type VpcEndpointClient ¶
type VpcEndpointClient interface {
CreateEndpoint(context context.Context, req *vpce.CreateEndpointRequest, reqOpt ...config.RequestOption) (resp *vpce.CreateEndpointResponse, rawResponse *protocol.Response, err error)
DeleteEndpoint(context context.Context, req *vpce.DeleteEndpointRequest, reqOpt ...config.RequestOption) (resp *vpce.DeleteEndpointResponse, rawResponse *protocol.Response, err error)
GetEndpoint(context context.Context, req *vpce.GetEndpointRequest, reqOpt ...config.RequestOption) (resp *vpce.GetEndpointResponse, rawResponse *protocol.Response, err error)
ListEndpoint(context context.Context, req *vpce.ListEndpointRequest, reqOpt ...config.RequestOption) (resp *vpce.ListEndpointResponse, rawResponse *protocol.Response, err error)
CreateEndpointWhitelist(context context.Context, req *vpce.CreateEndpointWhitelistRequest, reqOpt ...config.RequestOption) (resp *vpce.CreateEndpointWhitelistResponse, rawResponse *protocol.Response, err error)
DeleteEndpointWhitelist(context context.Context, req *vpce.DeleteEndpointWhitelistRequest, reqOpt ...config.RequestOption) (resp *vpce.DeleteEndpointWhitelistResponse, rawResponse *protocol.Response, err error)
ListEndpointWhitelist(context context.Context, req *vpce.ListEndpointWhitelistRequest, reqOpt ...config.RequestOption) (resp *vpce.ListEndpointWhitelistResponse, rawResponse *protocol.Response, err error)
ListEndpointNew(context context.Context, req *vpce.ListEndpointNewRequest, reqOpt ...config.RequestOption) (resp *vpce.ListEndpointNewResponse, rawResponse *protocol.Response, err error)
}
func NewVpcEndpointClient ¶
func NewVpcEndpointClient(hostUrl string, ops ...Option) (VpcEndpointClient, error)
Click to show internal directories.
Click to hide internal directories.