Documentation ¶
Index ¶
- Constants
- type BuildConfig
- func (b *BuildConfig) Build(env []system.Env) (*v1.Build, error)
- func (b *BuildConfig) Create() (*v1.BuildConfig, error)
- func (b *BuildConfig) Delete() error
- func (b *BuildConfig) Get() (*v1.BuildConfig, error)
- func (b *BuildConfig) GetBuild() (*v1.Build, error)
- func (b *BuildConfig) GetBuildStatus() (v1.BuildPhase, error)
- func (b *BuildConfig) Watch(build *v1.Build, completedHandler func() error) error
- type DeploymentConfig
- type ImageStream
- type ImageStreamInterface
- type ImageStreamTag
- type Project
- type RoleBinding
- func (rb *RoleBinding) Create(roleBinding *authorization_v1.RoleBinding) (*authorization_v1.RoleBinding, error)
- func (rb *RoleBinding) Delete() error
- func (rb *RoleBinding) Get() (*authorization_v1.RoleBinding, error)
- func (rb *RoleBinding) Init() *authorization_v1.RoleBinding
- func (rb *RoleBinding) InitImageBuilders() error
- func (rb *RoleBinding) InitImagePullers() error
- func (rb *RoleBinding) InitSystemDeployers() error
- func (rb *RoleBinding) Update(roleBinding *authorization_v1.RoleBinding) (*authorization_v1.RoleBinding, error)
- type Route
- type Scm
Constants ¶
const ( ApiVersion = "apps.openshift.io/v1" Kind = "ImageStreamTag" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildConfig ¶
type BuildConfig struct { Name string Namespace string Scm Scm Version string // use NewFrom when creating new buildConfig From corev1.ObjectReference BuildConfigs buildv1.BuildConfigInterface Builds buildv1.BuildInterface }
func NewBuildConfig ¶
func NewBuildConfig(namespace, name, scmUrl, scmRef, scmSecret, version, s2iImageStream string) (*BuildConfig, error)
@Title NewBuildConfig @Description Create new BuildConfig Instance @Param namespace, appName, gitUrl, imageTag, s2iImageStream string @Return *BuildConfig, error
func (*BuildConfig) Build ¶
@Title Build @Description Start build according to previous build config settings, it will produce new image build @Param repo string, buildCmd string @Return *v1.Build, error
func (*BuildConfig) Create ¶
func (b *BuildConfig) Create() (*v1.BuildConfig, error)
@Title Create @Description Create new BuildConfig @Param @Return *v1.BuildConfig, error
func (*BuildConfig) Delete ¶
func (b *BuildConfig) Delete() error
@Title Delete @Description Delete BuildConfig @Param @Return error
func (*BuildConfig) Get ¶
func (b *BuildConfig) Get() (*v1.BuildConfig, error)
@Title Get @Description Get BuildConfig @Param @Return *v1.BuildConfig, error
func (*BuildConfig) GetBuild ¶
func (b *BuildConfig) GetBuild() (*v1.Build, error)
@Title GetBuild @Description Get current build @Param @Return *v1.Build, error
func (*BuildConfig) GetBuildStatus ¶
func (b *BuildConfig) GetBuildStatus() (v1.BuildPhase, error)
@Title GetBuildStatus @Description Get current build status @Param @Return v1.BuildPhase, error
type DeploymentConfig ¶
type DeploymentConfig struct { Name string Namespace string FullName string Version string Interface appsv1.DeploymentConfigInterface }
func NewDeploymentConfig ¶
func NewDeploymentConfig(name, namespace, version string) (*DeploymentConfig, error)
func (*DeploymentConfig) Delete ¶
func (dc *DeploymentConfig) Delete() error
func (*DeploymentConfig) Get ¶
func (dc *DeploymentConfig) Get() (*v1.DeploymentConfig, error)
func (*DeploymentConfig) Instantiate ¶
func (dc *DeploymentConfig) Instantiate() (*v1.DeploymentConfig, error)
type ImageStream ¶
type ImageStream struct { Name string Namespace string Source string Interface imagev1.ImageStreamInterface }
func NewImageStream ¶
func NewImageStream(name, namespace string) (*ImageStream, error)
func NewImageStreamFromSource ¶
func NewImageStreamFromSource(name, namespace, source string) (*ImageStream, error)
func (*ImageStream) Create ¶
func (is *ImageStream) Create(version string) (*v1.ImageStream, error)
@Title Create @Description create imagestream @Param @Return v1.ImageStream, error
func (*ImageStream) Delete ¶
func (is *ImageStream) Delete() error
@Title Delete @Description delete imagestream @Param @Return error
func (*ImageStream) Get ¶
func (is *ImageStream) Get() (*v1.ImageStream, error)
@Title Get @Description get imagestream @Param @Return v1.ImageStream, error
type ImageStreamInterface ¶
type ImageStreamInterface interface { Create() (*v1.ImageStream, error) Get() (*v1.ImageStream, error) Delete() error }
type ImageStreamTag ¶
type ImageStreamTag struct { Name string FullName string Namespace string Version string Interface image.ImageStreamTagInterface }
func NewImageStreamTags ¶
func NewImageStreamTags(name, version, namespace string) (*ImageStreamTag, error)
func (*ImageStreamTag) Create ¶
func (ist *ImageStreamTag) Create(fromNamespace string) (*v1.ImageStreamTag, error)
func (*ImageStreamTag) Delete ¶
func (ist *ImageStreamTag) Delete() error
func (*ImageStreamTag) Get ¶
func (ist *ImageStreamTag) Get() (*v1.ImageStreamTag, error)
func (*ImageStreamTag) Update ¶
func (ist *ImageStreamTag) Update() (*v1.ImageStreamTag, error)
type Project ¶
type Project struct { Name string DisplayName string Description string Interface projectv1.ProjectInterface }
func NewProject ¶
type RoleBinding ¶
type RoleBinding struct { Name string `json:"name"` Namespace string `json:"namespace"` RoleRefName string `json:"role_ref_name"` RoleRefKind string `json:"role_ref_kind"` SubjectKind string `json:"subject_kind"` SubjectName string `json:"subject_name"` Data map[string]string `json:"data"` Interface v1.RoleBindingInterface }
func NewRoleBinding ¶
func NewRoleBinding(name, namespace string) (*RoleBinding, error)
func (*RoleBinding) Create ¶
func (rb *RoleBinding) Create(roleBinding *authorization_v1.RoleBinding) (*authorization_v1.RoleBinding, error)
func (*RoleBinding) Delete ¶
func (rb *RoleBinding) Delete() error
func (*RoleBinding) Get ¶
func (rb *RoleBinding) Get() (*authorization_v1.RoleBinding, error)
func (*RoleBinding) Init ¶
func (rb *RoleBinding) Init() *authorization_v1.RoleBinding
func (*RoleBinding) InitImageBuilders ¶
func (rb *RoleBinding) InitImageBuilders() error
func (*RoleBinding) InitImagePullers ¶
func (rb *RoleBinding) InitImagePullers() error
func (*RoleBinding) InitSystemDeployers ¶
func (rb *RoleBinding) InitSystemDeployers() error
func (*RoleBinding) Update ¶
func (rb *RoleBinding) Update(roleBinding *authorization_v1.RoleBinding) (*authorization_v1.RoleBinding, error)