thirdpartyresource

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ThirdPartyResource

type ThirdPartyResource struct {
	ObjectMeta api.ObjectMeta `json:"objectMeta"`
	TypeMeta   api.TypeMeta   `json:"typeMeta"`
}

ThirdPartyResource is a third party resource template.

type ThirdPartyResourceCell

type ThirdPartyResourceCell extensions.ThirdPartyResource

The code below allows to perform complex data section on []extensions.ThirdPartyResource.

func (ThirdPartyResourceCell) GetProperty

type ThirdPartyResourceDetail

type ThirdPartyResourceDetail struct {
	ObjectMeta  api.ObjectMeta               `json:"objectMeta"`
	TypeMeta    api.TypeMeta                 `json:"typeMeta"`
	Description string                       `json:"description"`
	Versions    []extensions.APIVersion      `json:"versions"`
	Objects     ThirdPartyResourceObjectList `json:"objects"`
}

ThirdPartyResourceDetail is a third party resource template.

func GetThirdPartyResourceDetail

func GetThirdPartyResourceDetail(client k8sClient.Interface, config *rest.Config, name string) (*ThirdPartyResourceDetail, error)

GetThirdPartyResourceDetail returns detailed information about a third party resource.

type ThirdPartyResourceList

type ThirdPartyResourceList struct {
	ListMeta            api.ListMeta         `json:"listMeta"`
	TypeMeta            api.TypeMeta         `json:"typeMeta"`
	ThirdPartyResources []ThirdPartyResource `json:"thirdPartyResources"`

	// List of non-critical errors, that occurred during resource retrieval.
	Errors []error `json:"errors"`
}

ThirdPartyResourceList contains a list of third party resource templates.

func GetThirdPartyResourceList

func GetThirdPartyResourceList(client k8sClient.Interface, dsQuery *dataselect.DataSelectQuery) (*ThirdPartyResourceList, error)

GetThirdPartyResourceList returns a list of third party resource templates.

func GetThirdPartyResourceListFromChannels

func GetThirdPartyResourceListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*ThirdPartyResourceList, error)

GetThirdPartyResourceListFromChannels returns a list of all third party resources in the cluster reading required resource list once from the channels.

type ThirdPartyResourceObject

type ThirdPartyResourceObject struct {
	metav1.TypeMeta `json:",inline"`
	Metadata        metav1.ObjectMeta `json:"metadata,omitempty"`
}

ThirdPartyResourceObject is a single instance of third party resource.

type ThirdPartyResourceObjectCell

type ThirdPartyResourceObjectCell ThirdPartyResourceObject

The code below allows to perform complex data section on ThirdPartyResourceObject.

func (ThirdPartyResourceObjectCell) GetProperty

type ThirdPartyResourceObjectList

type ThirdPartyResourceObjectList struct {
	ListMeta        api.ListMeta `json:"listMeta"`
	metav1.TypeMeta `json:",inline"`
	Items           []ThirdPartyResourceObject `json:"items"`

	// List of non-critical errors, that occurred during resource retrieval.
	Errors []error `json:"errors"`
}

ThirdPartyResourceObjectList is a list of third party resource instances.

func GetThirdPartyResourceObjects

func GetThirdPartyResourceObjects(client k8sClient.Interface, config *rest.Config,
	dsQuery *dataselect.DataSelectQuery, tprName string) (ThirdPartyResourceObjectList, error)

GetThirdPartyResourceObjects return list of third party resource instances. Channels cannot be used here yet, because we operate on raw JSONs.

Jump to

Keyboard shortcuts

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