kubernetes: github.com/bboreham/kubernetes/pkg/client/unversioned/testclient/simple Index | Files

package simple

import "github.com/bboreham/kubernetes/pkg/client/unversioned/testclient/simple"

Index

Package Files

simple_testclient.go

Constants

const NameRequiredError = "resource name may not be empty"

func BuildQueryValues Uses

func BuildQueryValues(query url.Values) url.Values

buildQueryValues is a convenience function for knowing if a namespace should be in a query param or not

func ValidateLabels Uses

func ValidateLabels(a, b string) bool

type Client Uses

type Client struct {
    *client.Client
    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
    // contains filtered or unexported fields
}

func (*Client) ServerURL Uses

func (c *Client) ServerURL() string

func (*Client) Setup Uses

func (c *Client) Setup(t *testing.T) *Client

func (*Client) Validate Uses

func (c *Client) Validate(t *testing.T, received runtime.Object, err error)

func (*Client) ValidateCommon Uses

func (c *Client) ValidateCommon(t *testing.T, err error)

func (*Client) ValidateRaw Uses

func (c *Client) ValidateRaw(t *testing.T, received []byte, err error)

type Request Uses

type Request struct {
    Method  string
    Path    string
    Header  string
    Query   url.Values
    Body    runtime.Object
    RawBody *string
}

type Response Uses

type Response struct {
    StatusCode int
    Body       runtime.Object
    RawBody    *string
}

Package simple imports 14 packages (graph). Updated 2017-08-10. Refresh now. Tools for package owners. This is a quick bug-fix fork (has fewer than three commits, and only during the week it was created).