extensions

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName string = "network-checker.ext"
	Version   string = "v1"
)

Variables

View Source
var (
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
	SchemeBuilder      = runtime.NewSchemeBuilder(addKnownTypes)
)

Functions

This section is empty.

Types

type Agent

type Agent struct {
	meta_v1.TypeMeta `json:",inline"`
	Metadata         meta_v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec AgentSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}

func (*Agent) GetObjectKind

func (e *Agent) GetObjectKind() schema.ObjectKind

func (*Agent) GetObjectMeta

func (e *Agent) GetObjectMeta() meta_v1.Object

func (*Agent) UnmarshalJSON

func (e *Agent) UnmarshalJSON(data []byte) error

type AgentCopy

type AgentCopy Agent

type AgentList

type AgentList struct {
	meta_v1.TypeMeta `json:",inline"`
	Metadata         meta_v1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Items []Agent `json:"items" protobuf:"bytes,2,rep,name=items"`
}

func (*AgentList) GetListMeta

func (el *AgentList) GetListMeta() meta_v1.List

func (*AgentList) GetObjectKind

func (el *AgentList) GetObjectKind() schema.ObjectKind

func (*AgentList) UnmarshalJSON

func (el *AgentList) UnmarshalJSON(data []byte) error

type AgentListCopy

type AgentListCopy AgentList

type AgentSpec

type AgentSpec struct {
	ReportInterval int                 `json:"report_interval"`
	PodName        string              `json:"podname"`
	HostDate       time.Time           `json:"hostdate"`
	LastUpdated    time.Time           `json:"last_updated"`
	LookupHost     map[string][]string `json:"nslookup"`
	IPs            map[string][]string `json:"ips"`
}

type AgentsClient

type AgentsClient struct {
	// contains filtered or unexported fields
}

AgentsClient structure

func (*AgentsClient) Create

func (c *AgentsClient) Create(agent *Agent) (result *Agent, err error)

Create agent function

func (*AgentsClient) Delete

func (c *AgentsClient) Delete(name string, options *api.DeleteOptions) error

Delete agent function

func (*AgentsClient) Get

func (c *AgentsClient) Get(name string) (result *Agent, err error)

Get agent function

func (*AgentsClient) List

func (c *AgentsClient) List(opts api.ListOptions) (result *AgentList, err error)

List agents function

func (*AgentsClient) Update

func (c *AgentsClient) Update(agent *Agent) (result *Agent, err error)

Update agents function

func (*AgentsClient) Watch

func (c *AgentsClient) Watch(opts api.ListOptions) (watch.Interface, error)

Watch agents function

type AgentsInterface

type AgentsInterface interface {
	Create(*Agent) (*Agent, error)
	Get(name string) (*Agent, error)
	List(api.ListOptions) (*AgentList, error)
	Watch(api.ListOptions) (watch.Interface, error)
	Update(*Agent) (*Agent, error)
	Delete(string, *api.DeleteOptions) error
}

AgentsInterface interface

type Clientset

type Clientset interface {
	Agents() AgentsInterface
}

Clientset interface

type WrappedClientset

type WrappedClientset struct {
	Client *rest.RESTClient
}

WrappedClientset structure

func WrapClientsetWithExtensions

func WrapClientsetWithExtensions(clientset *kubernetes.Clientset, config *rest.Config) (*WrappedClientset, error)

WrapClientsetWithExtensions function

func (*WrappedClientset) Agents

func (w *WrappedClientset) Agents() AgentsInterface

Agents function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL