v1alpha1

package
v0.0.0-...-203e7e7 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName     = "projectriff.io"
	VersionNumber = "v1alpha1"
)

Variables

View Source
var (
	SchemeGroupVersion = schema.GroupVersion{
		Group:   GroupName,
		Version: VersionNumber,
	}

	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

Define your schema name and the version

Functions

func Kind

func Kind(kind string) schema.GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Types

type KabResource

type KabResource struct {
	Path     string            `json:"path,omitempty"`
	Content  string            `json:"content,omitempty"`
	Name     string            `json:"name,omitempty"`
	Labels   map[string]string `json:"labels,omitempty"`
	Deferred bool              `json:"deferred,omitempty"`
	Checks   []ResourceChecks  `json:"checks,omitempty"`
}

func (*KabResource) DeepCopy

func (in *KabResource) DeepCopy() *KabResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KabResource.

func (*KabResource) DeepCopyInto

func (in *KabResource) DeepCopyInto(out *KabResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KabSpec

type KabSpec struct {
	Resources []KabResource `json:"resources,omitempty"`
}

func (*KabSpec) DeepCopy

func (in *KabSpec) DeepCopy() *KabSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KabSpec.

func (*KabSpec) DeepCopyInto

func (in *KabSpec) DeepCopyInto(out *KabSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KabStatus

type KabStatus struct {
	Status string `json:"status,omitempty"`
}

func (*KabStatus) DeepCopy

func (in *KabStatus) DeepCopy() *KabStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KabStatus.

func (*KabStatus) DeepCopyInto

func (in *KabStatus) DeepCopyInto(out *KabStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Manifest

type Manifest struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec KabSpec `json:"spec,omitempty"`

	// +optional
	Status KabStatus `json:"status,omitempty"`
}

+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewManifest

func NewManifest(path string) (manifest *Manifest, err error)

func (*Manifest) DeepCopy

func (in *Manifest) DeepCopy() *Manifest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Manifest.

func (*Manifest) DeepCopyInto

func (in *Manifest) DeepCopyInto(out *Manifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Manifest) DeepCopyObject

func (in *Manifest) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Manifest) InlineContent

func (m *Manifest) InlineContent() error

Embeds the contents of Path url into Content field for all resources only when there is no previous content.

func (*Manifest) PatchResourceContent

func (m *Manifest) PatchResourceContent(f func(res *KabResource) (string, error)) error

For each resource (res) in the manifest, replaces the Content (res.Content) with the returned value from the parameter function

func (*Manifest) VisitResources

func (m *Manifest) VisitResources(f func(res KabResource) error) error

type ManifestList

type ManifestList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `son:"metadata,omitempty"`

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ManifestList) DeepCopy

func (in *ManifestList) DeepCopy() *ManifestList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestList.

func (*ManifestList) DeepCopyInto

func (in *ManifestList) DeepCopyInto(out *ManifestList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManifestList) DeepCopyObject

func (in *ManifestList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceChecks

type ResourceChecks struct {
	Kind      string               `json:"kind,omitempty"`
	Namespace string               `json:"namespace,omitempty"`
	Selector  metav1.LabelSelector `json:"selector,omitempty"`
	JsonPath  string               `json:"jsonpath,omitempty"`
	Pattern   string               `json:"pattern,omitempty"`
}

func (*ResourceChecks) DeepCopy

func (in *ResourceChecks) DeepCopy() *ResourceChecks

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceChecks.

func (*ResourceChecks) DeepCopyInto

func (in *ResourceChecks) DeepCopyInto(out *ResourceChecks)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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