Documentation ¶
Index ¶
- Constants
- type BuildConfig
- func (b *BuildConfig) Build(name, namespace, version string, env []system.Env, ...) (*v1.Build, error)
- func (b *BuildConfig) Create(name, namespace, url, ref, version, secret string, ...) (*v1.BuildConfig, error)
- func (b *BuildConfig) Delete(name, namespace string) error
- func (b *BuildConfig) Get(name, namespace string) (*v1.BuildConfig, error)
- func (b *BuildConfig) GetBuild(name, namespace string) (*v1.Build, error)
- func (b *BuildConfig) GetBuildStatus(name, namespace string) (v1.BuildPhase, error)
- func (b *BuildConfig) Watch(name, namespace string, build *v1.Build, completedHandler func() error) error
- type BuildInterface
- type DeploymentConfig
- func (dc *DeploymentConfig) Create(name, namespace, fullName, version string, env interface{}, ...) error
- func (dc *DeploymentConfig) Delete(namespace, fullName string) error
- func (dc *DeploymentConfig) Get(namespace, fullName string) (*v1.DeploymentConfig, error)
- func (dc *DeploymentConfig) Instantiate(name, namespace, fullName string) (*v1.DeploymentConfig, error)
- type DeploymentConfigInterface
- type ImageStream
- func (is *ImageStream) Create(name, namespace, source, version string) (*v1.ImageStream, error)
- func (is *ImageStream) CreateImageStream(namespace, name, scmRef, s2iImageStream string, rebuild bool) (*corev1.ObjectReference, error)
- func (is *ImageStream) Delete(name, namespace string) error
- func (is *ImageStream) Get(name, namespace string) (*v1.ImageStream, error)
- type ImageStreamInterface
- type ImageStreamTag
- func (ist *ImageStreamTag) Create(fullName, namespace, fromNamespace string) (*v1.ImageStreamTag, error)
- func (ist *ImageStreamTag) Delete(fullName, namespace string) error
- func (ist *ImageStreamTag) Get(fullName, namespace string) (*v1.ImageStreamTag, error)
- func (ist *ImageStreamTag) Update(fullName, namespace, fromNamespace string) (*v1.ImageStreamTag, error)
- type ImageTagInterface
- type OAuthAccessToken
- type Oauth
- type Project
- type RoleBinding
- func (rb *RoleBinding) Create(name, namespace, roleRefName, roleRefKind, subjectKind, subjectName string) (*authorization_v1.RoleBinding, error)
- func (rb *RoleBinding) Delete(name, namespace string) error
- func (rb *RoleBinding) Get(name, namespace string) (*authorization_v1.RoleBinding, error)
- func (rb *RoleBinding) InitImageBuilders(namespace, roleRefName, roleRefKind, subjectKind, subjectName string) error
- func (rb *RoleBinding) InitImagePullers(namespace, roleRefName, roleRefKind, subjectKind, subjectName string) error
- func (rb *RoleBinding) InitSystemDeployers(namespace, roleRefName, roleRefKind, subjectKind, subjectName string) error
- func (rb *RoleBinding) Update(name, namespace, roleRefName, roleRefKind, subjectKind, subjectName string) (*authorization_v1.RoleBinding, error)
- type Route
- type Scm
Constants ¶
const ( ApiVersion = "apps.openshift.io/v1" Kind = "ImageStreamTag" )
const NodeSelector = "openshift.io/node-selector"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildConfig ¶
type BuildConfig struct {
// contains filtered or unexported fields
}
func (*BuildConfig) Build ¶
func (b *BuildConfig) Build(name, namespace, version string, env []system.Env, from *corev1.ObjectReference) (*v1.Build, error)
@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(name, namespace, url, ref, version, secret string, from *corev1.ObjectReference) (*v1.BuildConfig, error)
@Title Create @Description Create new BuildConfig @Param @Return *v1.BuildConfig, error
func (*BuildConfig) Delete ¶
func (b *BuildConfig) Delete(name, namespace string) error
@Title Delete @Description Delete BuildConfig @Param @Return error
func (*BuildConfig) Get ¶
func (b *BuildConfig) Get(name, namespace string) (*v1.BuildConfig, error)
@Title Get @Description Get BuildConfig @Param @Return *v1.BuildConfig, error
func (*BuildConfig) GetBuild ¶
func (b *BuildConfig) GetBuild(name, namespace string) (*v1.Build, error)
@Title GetBuild @Description Get current build @Param @Return *v1.Build, error
func (*BuildConfig) GetBuildStatus ¶
func (b *BuildConfig) GetBuildStatus(name, namespace string) (v1.BuildPhase, error)
@Title GetBuildStatus @Description Get current build status @Param @Return v1.BuildPhase, error
type BuildInterface ¶
type DeploymentConfig ¶
type DeploymentConfig struct {
// contains filtered or unexported fields
}
func (*DeploymentConfig) Delete ¶
func (dc *DeploymentConfig) Delete(namespace, fullName string) error
func (*DeploymentConfig) Get ¶
func (dc *DeploymentConfig) Get(namespace, fullName string) (*v1.DeploymentConfig, error)
func (*DeploymentConfig) Instantiate ¶
func (dc *DeploymentConfig) Instantiate(name, namespace, fullName string) (*v1.DeploymentConfig, error)
type DeploymentConfigInterface ¶
type DeploymentConfigInterface interface { Get() (*v1.DeploymentConfig, error) Instantiate() (*v1.DeploymentConfig, error) Delete() error }
type ImageStream ¶
type ImageStream struct {
// contains filtered or unexported fields
}
func (*ImageStream) Create ¶
func (is *ImageStream) Create(name, namespace, source, version string) (*v1.ImageStream, error)
@Title Create @Description create imagestream @Param @Return v1.ImageStream, error
func (*ImageStream) CreateImageStream ¶
func (is *ImageStream) CreateImageStream(namespace, name, scmRef, s2iImageStream string, rebuild bool) (*corev1.ObjectReference, error)
@Title NewBuildConfig @Description Create new BuildConfig Instance @Param namespace, appName, gitUrl, imageTag, s2iImageStream string @Return *BuildConfig, error
func (*ImageStream) Delete ¶
func (is *ImageStream) Delete(name, namespace string) error
@Title Delete @Description delete imagestream @Param @Return error
func (*ImageStream) Get ¶
func (is *ImageStream) Get(name, namespace string) (*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 {
// contains filtered or unexported fields
}
func (*ImageStreamTag) Create ¶
func (ist *ImageStreamTag) Create(fullName, namespace, fromNamespace string) (*v1.ImageStreamTag, error)
func (*ImageStreamTag) Delete ¶
func (ist *ImageStreamTag) Delete(fullName, namespace string) error
func (*ImageStreamTag) Get ¶
func (ist *ImageStreamTag) Get(fullName, namespace string) (*v1.ImageStreamTag, error)
func (*ImageStreamTag) Update ¶
func (ist *ImageStreamTag) Update(fullName, namespace, fromNamespace string) (*v1.ImageStreamTag, error)
type ImageTagInterface ¶
type ImageTagInterface interface { Create(fromNamespace string) (*v1.ImageStreamTag, error) Get() (*v1.ImageStreamTag, error) Delete() error Update(fromNamespace string) (*v1.ImageStreamTag, error) }
type OAuthAccessToken ¶
type OAuthAccessToken struct {
Interface oauthv1.OAuthAccessTokenInterface
}
func NewOAuthAccessToken ¶
func NewOAuthAccessToken(clientSet oauthv1.OauthV1Interface) *OAuthAccessToken
func (*OAuthAccessToken) Create ¶
func (o *OAuthAccessToken) Create() (*v1.OAuthAccessToken, error)
func (*OAuthAccessToken) Get ¶
func (o *OAuthAccessToken) Get(name string) (*v1.OAuthAccessToken, error)
func (*OAuthAccessToken) List ¶
func (o *OAuthAccessToken) List() (*v1.OAuthAccessTokenList, error)
type Oauth ¶
type Oauth interface { oauthv1.OauthV1Interface }
type RoleBinding ¶
type RoleBinding struct {
// contains filtered or unexported fields
}
func (*RoleBinding) Create ¶
func (rb *RoleBinding) Create(name, namespace, roleRefName, roleRefKind, subjectKind, subjectName string) (*authorization_v1.RoleBinding, error)
func (*RoleBinding) Delete ¶
func (rb *RoleBinding) Delete(name, namespace string) error
func (*RoleBinding) Get ¶
func (rb *RoleBinding) Get(name, namespace string) (*authorization_v1.RoleBinding, error)
func (*RoleBinding) InitImageBuilders ¶
func (rb *RoleBinding) InitImageBuilders(namespace, roleRefName, roleRefKind, subjectKind, subjectName string) error
func (*RoleBinding) InitImagePullers ¶
func (rb *RoleBinding) InitImagePullers(namespace, roleRefName, roleRefKind, subjectKind, subjectName string) error
func (*RoleBinding) InitSystemDeployers ¶
func (rb *RoleBinding) InitSystemDeployers(namespace, roleRefName, roleRefKind, subjectKind, subjectName string) error
func (*RoleBinding) Update ¶
func (rb *RoleBinding) Update(name, namespace, roleRefName, roleRefKind, subjectKind, subjectName string) (*authorization_v1.RoleBinding, error)