tpr

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterSpec

type ClusterSpec struct {
	// Name is the cluster name
	Name string `json:"name"`

	// Replicas allows user to override the base image
	Replicas int32 `json:"replicas"`

	// BaseImage allows user to override the base image
	BaseImage string `json:"base-image"`

	// UseSamplePostgres defines if sample postgres db should be deployed
	UseSamplePostgres bool `json:"useSamplePostgres"`

	// Apis defines list of api's to configure in kong
	Apis []kong.Data `json:"apis"`

	// Plugins defines the list of plugins to enable
	Plugins []kong.Plugin `json:"plugins"`

	// Consumers define the users
	Consumers []kong.ConsumerTPR `json:"consumers"`
}

ClusterSpec defines cluster options

type KongCluster

type KongCluster struct {
	unversioned.TypeMeta `json:",inline"`
	Metadata             api.ObjectMeta `json:"metadata"`

	APIVersion string      `json:"apiVersion"`
	Type       string      `json:"type"`
	Kind       string      `json:"kind"`
	Spec       ClusterSpec `json:"spec"`
}

KongCluster defines the cluster

func (*KongCluster) GetObjectKind

func (e *KongCluster) GetObjectKind() unversioned.ObjectKind

GetObjectKind required to satisfy Object interface

func (*KongCluster) GetObjectMeta

func (e *KongCluster) GetObjectMeta() meta.Object

GetObjectMeta required to satisfy ObjectMetaAccessor interface

func (*KongCluster) UnmarshalJSON

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

UnmarshalJSON unmarshals json

type KongClusterCopy

type KongClusterCopy KongCluster

type KongClusterList

type KongClusterList struct {
	APIVersion           string `json:"apiVersion"`
	Kind                 string `json:"kind"`
	unversioned.TypeMeta `json:",inline"`
	Metadata             api.ObjectMeta `json:"metadata"`

	Items []KongCluster `json:"items"`
}

KongClusterList represents a list of Kong Clusters

func (*KongClusterList) GetListMeta

func (el *KongClusterList) GetListMeta() unversioned.List

GetListMeta required to satisfy ListMetaAccessor interface

func (*KongClusterList) GetObjectKind

func (el *KongClusterList) GetObjectKind() unversioned.ObjectKind

GetObjectKind required to satisfy Object interface

func (*KongClusterList) UnmarshalJSON

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

type KongClusterListCopy

type KongClusterListCopy KongClusterList

Jump to

Keyboard shortcuts

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