client

package
v0.0.3-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GatewayType           = "gateway"
	GatewayFieldCreated   = "created"
	GatewayFieldLabels    = "labels"
	GatewayFieldName      = "name"
	GatewayFieldNamespace = "namespace"
	GatewayFieldRemoved   = "removed"
	GatewayFieldSelector  = "selector"
	GatewayFieldServers   = "servers"
	GatewayFieldUUID      = "uuid"
)
View Source
const (
	GatewaySpecType          = "gatewaySpec"
	GatewaySpecFieldSelector = "selector"
	GatewaySpecFieldServers  = "servers"
)
View Source
const (
	InitializerType      = "initializer"
	InitializerFieldName = "name"
)
View Source
const (
	InitializersType         = "initializers"
	InitializersFieldPending = "pending"
	InitializersFieldResult  = "result"
)
View Source
const (
	ListMetaType                 = "listMeta"
	ListMetaFieldContinue        = "continue"
	ListMetaFieldResourceVersion = "resourceVersion"
	ListMetaFieldSelfLink        = "selfLink"
)
View Source
const (
	ObjectMetaType                 = "objectMeta"
	ObjectMetaFieldAnnotations     = "annotations"
	ObjectMetaFieldCreated         = "created"
	ObjectMetaFieldFinalizers      = "finalizers"
	ObjectMetaFieldLabels          = "labels"
	ObjectMetaFieldName            = "name"
	ObjectMetaFieldNamespace       = "namespace"
	ObjectMetaFieldOwnerReferences = "ownerReferences"
	ObjectMetaFieldRemoved         = "removed"
	ObjectMetaFieldSelfLink        = "selfLink"
	ObjectMetaFieldUUID            = "uuid"
)
View Source
const (
	OwnerReferenceType                    = "ownerReference"
	OwnerReferenceFieldAPIVersion         = "apiVersion"
	OwnerReferenceFieldBlockOwnerDeletion = "blockOwnerDeletion"
	OwnerReferenceFieldController         = "controller"
	OwnerReferenceFieldKind               = "kind"
	OwnerReferenceFieldName               = "name"
	OwnerReferenceFieldUID                = "uid"
)
View Source
const (
	PortType          = "port"
	PortFieldName     = "name"
	PortFieldNumber   = "number"
	PortFieldProtocol = "protocol"
)
View Source
const (
	ServerType       = "server"
	ServerFieldHosts = "hosts"
	ServerFieldPort  = "port"
)
View Source
const (
	StatusType            = "status"
	StatusFieldAPIVersion = "apiVersion"
	StatusFieldCode       = "code"
	StatusFieldDetails    = "details"
	StatusFieldKind       = "kind"
	StatusFieldListMeta   = "metadata"
	StatusFieldMessage    = "message"
	StatusFieldReason     = "reason"
	StatusFieldStatus     = "status"
)
View Source
const (
	StatusCauseType         = "statusCause"
	StatusCauseFieldField   = "field"
	StatusCauseFieldMessage = "message"
	StatusCauseFieldType    = "reason"
)
View Source
const (
	StatusDetailsType                   = "statusDetails"
	StatusDetailsFieldCauses            = "causes"
	StatusDetailsFieldGroup             = "group"
	StatusDetailsFieldKind              = "kind"
	StatusDetailsFieldName              = "name"
	StatusDetailsFieldRetryAfterSeconds = "retryAfterSeconds"
	StatusDetailsFieldUID               = "uid"
)
View Source
const (
	VirtualServiceType           = "virtualService"
	VirtualServiceFieldCreated   = "created"
	VirtualServiceFieldLabels    = "labels"
	VirtualServiceFieldName      = "name"
	VirtualServiceFieldNamespace = "namespace"
	VirtualServiceFieldRemoved   = "removed"
	VirtualServiceFieldUUID      = "uuid"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	clientbase.APIBaseClient
}

func NewClient

func NewClient(opts *clientbase.ClientOpts) (*Client, error)

type Gateway

type Gateway struct {
	types.Resource
	Created   string            `json:"created,omitempty" yaml:"created,omitempty"`
	Labels    map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
	Name      string            `json:"name,omitempty" yaml:"name,omitempty"`
	Namespace string            `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	Removed   string            `json:"removed,omitempty" yaml:"removed,omitempty"`
	Selector  map[string]string `json:"selector,omitempty" yaml:"selector,omitempty"`
	Servers   []Server          `json:"servers,omitempty" yaml:"servers,omitempty"`
	UUID      string            `json:"uuid,omitempty" yaml:"uuid,omitempty"`
}

type GatewayClient

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

func (*GatewayClient) ByID

func (c *GatewayClient) ByID(id string) (*Gateway, error)

func (*GatewayClient) Create

func (c *GatewayClient) Create(container *Gateway) (*Gateway, error)

func (*GatewayClient) Delete

func (c *GatewayClient) Delete(container *Gateway) error

func (*GatewayClient) List

func (c *GatewayClient) List(opts *types.ListOpts) (*GatewayCollection, error)

func (*GatewayClient) Replace

func (c *GatewayClient) Replace(obj *Gateway) (*Gateway, error)

func (*GatewayClient) Update

func (c *GatewayClient) Update(existing *Gateway, updates interface{}) (*Gateway, error)

type GatewayCollection

type GatewayCollection struct {
	types.Collection
	Data []Gateway `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GatewayCollection) Next

func (cc *GatewayCollection) Next() (*GatewayCollection, error)

type GatewayOperations

type GatewayOperations interface {
	List(opts *types.ListOpts) (*GatewayCollection, error)
	Create(opts *Gateway) (*Gateway, error)
	Update(existing *Gateway, updates interface{}) (*Gateway, error)
	Replace(existing *Gateway) (*Gateway, error)
	ByID(id string) (*Gateway, error)
	Delete(container *Gateway) error
}

type GatewaySpec

type GatewaySpec struct {
	Selector map[string]string `json:"selector,omitempty" yaml:"selector,omitempty"`
	Servers  []Server          `json:"servers,omitempty" yaml:"servers,omitempty"`
}

type Initializer

type Initializer struct {
	Name string `json:"name,omitempty" yaml:"name,omitempty"`
}

type Initializers

type Initializers struct {
	Pending []Initializer `json:"pending,omitempty" yaml:"pending,omitempty"`
	Result  *Status       `json:"result,omitempty" yaml:"result,omitempty"`
}

type ListMeta

type ListMeta struct {
	Continue        string `json:"continue,omitempty" yaml:"continue,omitempty"`
	ResourceVersion string `json:"resourceVersion,omitempty" yaml:"resourceVersion,omitempty"`
	SelfLink        string `json:"selfLink,omitempty" yaml:"selfLink,omitempty"`
}

type ObjectMeta

type ObjectMeta struct {
	Annotations     map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
	Created         string            `json:"created,omitempty" yaml:"created,omitempty"`
	Finalizers      []string          `json:"finalizers,omitempty" yaml:"finalizers,omitempty"`
	Labels          map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
	Name            string            `json:"name,omitempty" yaml:"name,omitempty"`
	Namespace       string            `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	OwnerReferences []OwnerReference  `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
	Removed         string            `json:"removed,omitempty" yaml:"removed,omitempty"`
	SelfLink        string            `json:"selfLink,omitempty" yaml:"selfLink,omitempty"`
	UUID            string            `json:"uuid,omitempty" yaml:"uuid,omitempty"`
}

type OwnerReference

type OwnerReference struct {
	APIVersion         string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
	BlockOwnerDeletion *bool  `json:"blockOwnerDeletion,omitempty" yaml:"blockOwnerDeletion,omitempty"`
	Controller         *bool  `json:"controller,omitempty" yaml:"controller,omitempty"`
	Kind               string `json:"kind,omitempty" yaml:"kind,omitempty"`
	Name               string `json:"name,omitempty" yaml:"name,omitempty"`
	UID                string `json:"uid,omitempty" yaml:"uid,omitempty"`
}

type Port

type Port struct {
	Name     string `json:"name,omitempty" yaml:"name,omitempty"`
	Number   *int64 `json:"number,omitempty" yaml:"number,omitempty"`
	Protocol string `json:"protocol,omitempty" yaml:"protocol,omitempty"`
}

type Server

type Server struct {
	Hosts []string `json:"hosts,omitempty" yaml:"hosts,omitempty"`
	Port  *Port    `json:"port,omitempty" yaml:"port,omitempty"`
}

type Status

type Status struct {
	APIVersion string         `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
	Code       int64          `json:"code,omitempty" yaml:"code,omitempty"`
	Details    *StatusDetails `json:"details,omitempty" yaml:"details,omitempty"`
	Kind       string         `json:"kind,omitempty" yaml:"kind,omitempty"`
	ListMeta   *ListMeta      `json:"metadata,omitempty" yaml:"metadata,omitempty"`
	Message    string         `json:"message,omitempty" yaml:"message,omitempty"`
	Reason     string         `json:"reason,omitempty" yaml:"reason,omitempty"`
	Status     string         `json:"status,omitempty" yaml:"status,omitempty"`
}

type StatusCause

type StatusCause struct {
	Field   string `json:"field,omitempty" yaml:"field,omitempty"`
	Message string `json:"message,omitempty" yaml:"message,omitempty"`
	Type    string `json:"reason,omitempty" yaml:"reason,omitempty"`
}

type StatusDetails

type StatusDetails struct {
	Causes            []StatusCause `json:"causes,omitempty" yaml:"causes,omitempty"`
	Group             string        `json:"group,omitempty" yaml:"group,omitempty"`
	Kind              string        `json:"kind,omitempty" yaml:"kind,omitempty"`
	Name              string        `json:"name,omitempty" yaml:"name,omitempty"`
	RetryAfterSeconds int64         `json:"retryAfterSeconds,omitempty" yaml:"retryAfterSeconds,omitempty"`
	UID               string        `json:"uid,omitempty" yaml:"uid,omitempty"`
}

type VirtualService

type VirtualService struct {
	types.Resource
	Created   string            `json:"created,omitempty" yaml:"created,omitempty"`
	Labels    map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
	Name      string            `json:"name,omitempty" yaml:"name,omitempty"`
	Namespace string            `json:"namespace,omitempty" yaml:"namespace,omitempty"`
	Removed   string            `json:"removed,omitempty" yaml:"removed,omitempty"`
	UUID      string            `json:"uuid,omitempty" yaml:"uuid,omitempty"`
}

type VirtualServiceClient

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

func (*VirtualServiceClient) ByID

func (*VirtualServiceClient) Create

func (c *VirtualServiceClient) Create(container *VirtualService) (*VirtualService, error)

func (*VirtualServiceClient) Delete

func (c *VirtualServiceClient) Delete(container *VirtualService) error

func (*VirtualServiceClient) List

func (*VirtualServiceClient) Replace

func (*VirtualServiceClient) Update

func (c *VirtualServiceClient) Update(existing *VirtualService, updates interface{}) (*VirtualService, error)

type VirtualServiceCollection

type VirtualServiceCollection struct {
	types.Collection
	Data []VirtualService `json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*VirtualServiceCollection) Next

type VirtualServiceOperations

type VirtualServiceOperations interface {
	List(opts *types.ListOpts) (*VirtualServiceCollection, error)
	Create(opts *VirtualService) (*VirtualService, error)
	Update(existing *VirtualService, updates interface{}) (*VirtualService, error)
	Replace(existing *VirtualService) (*VirtualService, error)
	ByID(id string) (*VirtualService, error)
	Delete(container *VirtualService) error
}

Jump to

Keyboard shortcuts

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