Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=jenkins.io
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Environment
- type EnvironmentKindType
- type EnvironmentList
- type EnvironmentRepository
- type EnvironmentRepositoryType
- type EnvironmentSpec
- type EnvironmentStatus
- type PromotionStrategyType
- type PullRequestSpec
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var PromotionStrategyTypeValues = []string{ string(PromotionStrategyTypeAutomatic), string(PromotionStrategyTypeManual), string(PromotionStrategyTypeNever), }
PromotionStrategyTypeValues is the list of all values
var SchemeGroupVersion = schema.GroupVersion{Group: jenkinsio.GroupName, Version: jenkinsio.Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Environment ¶
type Environment struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Spec EnvironmentSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` Status EnvironmentStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
func (*Environment) DeepCopy ¶
func (in *Environment) DeepCopy() *Environment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Environment.
func (*Environment) DeepCopyInto ¶
func (in *Environment) DeepCopyInto(out *Environment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Environment) DeepCopyObject ¶
func (in *Environment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EnvironmentKindType ¶ added in v1.0.18
type EnvironmentKindType string
Environment Kind Type string
const ( // EnvironmentKindTypePermanent specifies that the environment is a regular permanent one EnvironmentKindTypePermanent EnvironmentKindType = "Permanent" // EnvironmentKindTypePreview specifies that an environment is a Preview environment that lasts as long as a Pull Request EnvironmentKindTypePreview EnvironmentKindType = "Preview" // EnvironmentKindTypeNever specifies that promotion is disabled for this environment EnvironmentKindTypeNever EnvironmentKindType = "Never" )
type EnvironmentList ¶
type EnvironmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Environment `json:"items"` }
EnvironmentList is a list of Example resources
func (*EnvironmentList) DeepCopy ¶
func (in *EnvironmentList) DeepCopy() *EnvironmentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentList.
func (*EnvironmentList) DeepCopyInto ¶
func (in *EnvironmentList) DeepCopyInto(out *EnvironmentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EnvironmentList) DeepCopyObject ¶
func (in *EnvironmentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EnvironmentRepository ¶
type EnvironmentRepository struct { Kind EnvironmentRepositoryType `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"` URL string `json:"url,omitempty" protobuf:"bytes,2,opt,name=url"` Ref string `json:"ref,omitempty" protobuf:"bytes,3,opt,name=ref"` }
func (*EnvironmentRepository) DeepCopy ¶
func (in *EnvironmentRepository) DeepCopy() *EnvironmentRepository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentRepository.
func (*EnvironmentRepository) DeepCopyInto ¶
func (in *EnvironmentRepository) DeepCopyInto(out *EnvironmentRepository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvironmentRepositoryType ¶
type EnvironmentRepositoryType string
Environment Repository Type string
const ( // EnvironmentRepositoryTypeGit specifies that a git repository is used EnvironmentRepositoryTypeGit EnvironmentRepositoryType = "Git" )
type EnvironmentSpec ¶
type EnvironmentSpec struct { Label string `json:"label,omitempty" protobuf:"bytes,1,opt,name=label"` Namespace string `json:"namespace,omitempty" protobuf:"bytes,2,opt,name=namespace"` Cluster string `json:"cluster,omitempty" protobuf:"bytes,3,opt,name=cluster"` PromotionStrategy PromotionStrategyType `json:"promotionStrategy,omitempty" protobuf:"bytes,4,opt,name=promotionStrategy"` Source EnvironmentRepository `json:"source,omitempty" protobuf:"bytes,5,opt,name=source"` Order int32 `json:"order,omitempty" protobuf:"bytes,6,opt,name=order"` PullRequest PullRequestSpec `json:"pullRequest,omitempty" protobuf:"bytes,7,opt,name=pullRequest"` Kind EnvironmentKindType `json:"promotionStrategy,omitempty" protobuf:"bytes,4,opt,name=promotionStrategy"` }
func (*EnvironmentSpec) DeepCopy ¶
func (in *EnvironmentSpec) DeepCopy() *EnvironmentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentSpec.
func (*EnvironmentSpec) DeepCopyInto ¶
func (in *EnvironmentSpec) DeepCopyInto(out *EnvironmentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvironmentStatus ¶
type EnvironmentStatus struct {
Version string `json:"version,omitempty"`
}
EnvironmentStatus is the status for an Envirnment resource
func (*EnvironmentStatus) DeepCopy ¶
func (in *EnvironmentStatus) DeepCopy() *EnvironmentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvironmentStatus.
func (*EnvironmentStatus) DeepCopyInto ¶
func (in *EnvironmentStatus) DeepCopyInto(out *EnvironmentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PromotionStrategyType ¶
type PromotionStrategyType string
Promotion Strategy Type string
const ( // PromotionStrategyTypeManual specifies that promotion happens manually PromotionStrategyTypeManual PromotionStrategyType = "Manual" // PromotionStrategyTypeAutomatic specifies that promotion happens automatically PromotionStrategyTypeAutomatic PromotionStrategyType = "Auto" // PromotionStrategyTypeNever specifies that promotion is disabled for this environment PromotionStrategyTypeNever PromotionStrategyType = "Never" )