types

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveUploadSpec

type ArchiveUploadSpec struct {
	// TypeMeta describes the type of this object. It is inlined. The Kind
	// field should always be "ArchiveUploadSpec".
	TypeMeta `json:",inline"`

	// Name is a local name that can be used to reference this archive. It
	// must be unique; duplicate names will cause an error while handling
	// specs.
	Name string `json:"name"`

	// RootDir specifies the root that the globs below are relative to. It
	// is optional and defaults to the parent directory of the spec
	// directory: for example, if the deployment config is at
	// /path/to/project/specs/config.yaml, the RootDir is /path/to/project.
	RootDir string `json:"rootdir,omitempty"`

	// IncludeGlobs is a list of Unix shell globs to include
	IncludeGlobs []string `json:"include,omitempty"`

	// ExcludeGlobs is a list of globs to exclude from the set specified by
	// IncludeGlobs.
	ExcludeGlobs []string `json:"exclude,omitempty"`
}

ArchiveUploadSpec specifies a set of files to be archived and uploaded.

The resulting archive can be referenced as archive://<Name> in PackageSpecs, using the name specified in the archive. The fission spec applier will replace the archive:// URL with a real HTTP URL after uploading the file.

type DeploymentConfig

type DeploymentConfig struct {
	// TypeMeta describes the type of this object. It is inlined. The Kind
	// field should always be "DeploymentConfig".
	TypeMeta `json:",inline"`

	// Name is a user-friendly name for the deployment. It is also stored in
	// all uploaded resources as an annotation.
	Name string `json:"name"`

	// UID uniquely identifies the deployment. It is stored as a label and
	// used to find resources to clean up when local specs are changed.
	UID string `json:"uid"`
}

DeploymentConfig is the global configuration for a set of Fission specs.

type TypeMeta

type TypeMeta struct {
	Kind       string `json:"kind,omitempty"`
	APIVersion string `json:"apiVersion,omitempty"`
}

TypeMeta is the same as Kubernetes' TypeMeta, and allows us to version and unmarshal local-only objects (like ArchiveUploadSpec) the same way that Kubernetes does.

Jump to

Keyboard shortcuts

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