package simple
import "k8s.io/kubernetes/pkg/client/unversioned/testclient/simple"
Index ¶
- Constants
- func BuildQueryValues(query url.Values) url.Values
- func ValidateLabels(a, b string) bool
- type Client
- func (c *Client) Close()
- func (c *Client) ServerURL() string
- func (c *Client) Setup(t *testing.T) *Client
- func (c *Client) Validate(t *testing.T, received runtime.Object, err error)
- func (c *Client) ValidateCommon(t *testing.T, err error)
- func (c *Client) ValidateRaw(t *testing.T, received []byte, err error)
- type Request
- type Response
Constants ¶
const NameRequiredError = "resource name may not be empty"
Functions ¶
func BuildQueryValues ¶
buildQueryValues is a convenience function for knowing if a namespace should be in a query param or not
func ValidateLabels ¶
Types ¶
type Client ¶
type Client struct { Clientset *clientset.Clientset Request Request Response Response Error bool Created bool // For query args, an optional function to validate the contents // useful when the contents can change but still be correct. // Maps from query arg key to validator. // If no validator is present, string equality is used. QueryValidator map[string]func(string, string) bool // If your object could exist in multiple groups, set this to // correspond to the URL you're testing it with. ResourceGroup string // contains filtered or unexported fields }
func (*Client) Close ¶
func (c *Client) Close()
func (*Client) ServerURL ¶
func (*Client) Setup ¶
func (*Client) Validate ¶
func (*Client) ValidateCommon ¶
func (*Client) ValidateRaw ¶
type Request ¶
type Request struct { Method string Path string Header string Query url.Values Body runtime.Object RawBody *string }
type Response ¶
Source Files ¶
simple_testclient.go
- Version
- v1.7.7
- Published
- Sep 28, 2017
- Platform
- js/wasm
- Imports
- 16 packages
- Last checked
- 3 minutes ago –
Tools for package owners.