Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRESTClient ¶ added in v0.1.1
func CreateRESTClient(rc *rest.Config, opts ...CreateRESTClientOption) (*rest.RESTClient, error)
CreateRESTClient returns a rest.RESTClient that satisfies the requested options on a rest.Config
Types ¶
type CreateRESTClientOption ¶ added in v0.1.2
func APIPath ¶ added in v0.1.2
func APIPath(apiPath string) CreateRESTClientOption
APIPath set a sub-path that points to an API root (optional, default '/apis')
func GroupVersion ¶ added in v0.1.2
func GroupVersion(gv schema.GroupVersion) CreateRESTClientOption
GroupVersion is the API version to talk to (required)
func UserAgent ¶ added in v0.1.2
func UserAgent(ua string) CreateRESTClientOption
UserAgent specifies the caller of this request (optional)
func Verbose ¶ added in v0.1.2
func Verbose(verbose bool) CreateRESTClientOption
Verbose if true adds a http wire dump transport middleware (optional)
Click to show internal directories.
Click to hide internal directories.