Documentation
¶
Index ¶
- func NewIntStr(v int) *intstr.IntOrString
- type Client
- func (c *Client) Admin() *admin.Client
- func (c *Client) Config() *config.Client
- func (c *Client) CurrentCluster() *clientcmdapi.Cluster
- func (c *Client) CurrentContext() *clientcmdapi.Context
- func (c *Client) Event() *event.Client
- func (c *Client) Gateway() *gateway.Client
- func (c *Client) GetContexts() map[string]*clientcmdapi.Context
- func (c *Client) K8sClientSet() *kubernetes.Clientset
- func (c *Client) Network() *network.Client
- func (c *Client) ServerResources() *meta.ApiResourceList
- func (c *Client) ServerVersion() (string, error)
- func (c *Client) Storage() *storage.Client
- func (c *Client) Watch(ctx context.Context, req *WatchRequest) (watch.Interface, error)
- func (c *Client) WorkLoad() *workload.Client
- type ObjectKind
- type WatchReader
- type WatchRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIntStr ¶
func NewIntStr(v int) *intstr.IntOrString
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientFromFile ¶
func (*Client) CurrentCluster ¶
func (c *Client) CurrentCluster() *clientcmdapi.Cluster
func (*Client) CurrentContext ¶
func (c *Client) CurrentContext() *clientcmdapi.Context
func (*Client) GetContexts ¶
func (c *Client) GetContexts() map[string]*clientcmdapi.Context
func (*Client) K8sClientSet ¶ added in v0.0.2
func (c *Client) K8sClientSet() *kubernetes.Clientset
func (*Client) ServerResources ¶
func (c *Client) ServerResources() *meta.ApiResourceList
func (*Client) ServerVersion ¶
type ObjectKind ¶
type ObjectKind string
const ( OBJECT_DEPLOY ObjectKind = "deployment" OBJECT_STATEFUL_SET ObjectKind = "statefulset" OBJECT_DAEMON_SET ObjectKind = "daemonset" OBJECT_JOB ObjectKind = "job" OBJECT_CRONJOB ObjectKind = "cronjob" OBJECT_POD ObjectKind = "pod" )
func (ObjectKind) String ¶
func (t ObjectKind) String() string
type WatchReader ¶
type WatchReader struct {
// contains filtered or unexported fields
}
func NewWatchReader ¶
func NewWatchReader(w watch.Interface) *WatchReader
func (*WatchReader) Close ¶
func (r *WatchReader) Close() error
type WatchRequest ¶
type WatchRequest struct { Namespace string `json:"namespace"` ObjectKind ObjectKind `json:"kind"` }
func NewWatchRequest ¶
func NewWatchRequest() *WatchRequest
func (*WatchRequest) Validate ¶
func (req *WatchRequest) Validate() error
func (*WatchRequest) WatchOptions ¶
func (req *WatchRequest) WatchOptions() metav1.ListOptions
Click to show internal directories.
Click to hide internal directories.