collection

package
v0.2.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CfContainerizersMetadataKind types.Kind = "CfContainerizers"

CfContainerizersMetadataKind defines kind of cfcontainerizers

View Source
const CfInstanceAppsMetadataKind types.Kind = "CfInstanceApps"

CfInstanceAppsMetadataKind defines kind of cf runtime instance apps file

View Source
const ClusterMetadataKind types.Kind = "ClusterMetadata"

ClusterMetadataKind defines the kind of cluster metadata file

View Source
const ImageMetadataKind types.Kind = "ImageMetadata"

ImageMetadataKind defines kind for imagemetadata file

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildpackContainerizer

type BuildpackContainerizer struct {
	BuildpackName                 string                            `yaml:"buildpackName"`
	ContainerBuildType            plantypes.ContainerBuildTypeValue `yaml:"containerBuildType"`
	ContainerizationTargetOptions []string                          `yaml:"targetOptions,omitempty"`
}

BuildpackContainerizer defines the structure of Buildpack and the containerization strategy to be used for it

type CfApplication

type CfApplication struct {
	Name              string            `yaml:"name"`
	Buildpack         string            `yaml:"buildpack,omitempty"`
	DetectedBuildpack string            `yaml:"detectedBuildpack,omitempty"`
	Memory            int64             `yaml:"memory"`
	Instances         int               `yaml:"instances"`
	DockerImage       string            `yaml:"dockerImage,omitempty"`
	Ports             []int32           `yaml:"ports"`
	Env               map[string]string `yaml:"env,omitempty"`
}

CfApplication defines the structure of a cf runtime application

type CfContainerizers

type CfContainerizers struct {
	types.TypeMeta   `yaml:",inline"`
	types.ObjectMeta `yaml:"metadata,omitempty"`
	Spec             CfContainerizersSpec `yaml:"spec,omitempty"`
}

CfContainerizers is the file structure of cfcontainerizers

func NewCfContainerizers

func NewCfContainerizers() CfContainerizers

NewCfContainerizers creates new CfContainerizers instance

type CfContainerizersSpec

type CfContainerizersSpec struct {
	BuildpackContainerizers []BuildpackContainerizer `yaml:"buildpackContainerizers"`
}

CfContainerizersSpec stores the data

type CfInstanceApps

type CfInstanceApps struct {
	types.TypeMeta   `yaml:",inline"`
	types.ObjectMeta `yaml:"metadata,omitempty"`
	Spec             CfInstanceAppsSpec `yaml:"spec,omitempty"`
}

CfInstanceApps defines definition of cf runtime instance apps file

func NewCfInstanceApps

func NewCfInstanceApps() CfInstanceApps

NewCfInstanceApps creates a new instance of CfInstanceApps

type CfInstanceAppsSpec

type CfInstanceAppsSpec struct {
	CfApplications []CfApplication `yaml:"applications"`
}

CfInstanceAppsSpec stores the data

type ClusterMetadata

type ClusterMetadata struct {
	types.TypeMeta   `yaml:",inline"`
	types.ObjectMeta `yaml:"metadata,omitempty"`
	Spec             ClusterMetadataSpec `yaml:"spec,omitempty"`
}

ClusterMetadata for collect output

func NewClusterMetadata

func NewClusterMetadata(contextName string) ClusterMetadata

NewClusterMetadata creates a new cluster metadata instance

func (*ClusterMetadata) Merge

func (c *ClusterMetadata) Merge(newc ClusterMetadata) bool

Merge helps merge clustermetadata

type ClusterMetadataSpec

type ClusterMetadataSpec struct {
	StorageClasses    []string            `yaml:"storageClasses"`
	APIKindVersionMap map[string][]string `yaml:"apiKindVersionMap"` //[kubernetes kind]["gv1", "gv2",...,"gvn"] prioritized group-version
	Host              string              `yaml:"host,omitempty"`    // Optional field, either collected with move2kube collect or by asking the user.
}

ClusterMetadataSpec stores the data

func (*ClusterMetadataSpec) GetSupportedVersions

func (c *ClusterMetadataSpec) GetSupportedVersions(kind string) []string

GetSupportedVersions returns all the group version supported for the kind in this cluster

func (*ClusterMetadataSpec) IsBuildConfigSupported

func (c *ClusterMetadataSpec) IsBuildConfigSupported() bool

IsBuildConfigSupported returns true if the cluster is Openshift and has build configs

func (*ClusterMetadataSpec) IsTektonInstalled

func (c *ClusterMetadataSpec) IsTektonInstalled() bool

IsTektonInstalled returns true if Tekton has been installed on this cluster

func (*ClusterMetadataSpec) Merge

Merge helps merge clustermetadata

type ImageInfo

type ImageInfo struct {
	types.TypeMeta   `yaml:",inline"`
	types.ObjectMeta `yaml:"metadata,omitempty"`
	Spec             ImageInfoSpec `yaml:"spec,omitempty"`
}

ImageInfo stores data about different images

func NewImageInfo

func NewImageInfo() ImageInfo

NewImageInfo creates a new imageinfo instance

type ImageInfoSpec

type ImageInfoSpec struct {
	Tags          []string `yaml:"tags"`
	PortsToExpose []int    `yaml:"ports"`
	AccessedDirs  []string `yaml:"accessedDirs"`
	UserID        int      `yaml:"userID"`
}

ImageInfoSpec defines the data stored about ImageInfo

Jump to

Keyboard shortcuts

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