openshift

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiVersion = "apps.openshift.io/v1"
	Kind       = "ImageStreamTag"
)
View Source
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

func (*BuildConfig) Watch

func (b *BuildConfig) Watch(name, namespace string, build *v1.Build, completedHandler func() error) error

type BuildInterface

type BuildInterface interface {
	Create() (*v1.BuildConfig, error)
	Get() (*v1.BuildConfig, error)
	Delete() error
	Build(env []system.Env) (*v1.Build, error)
	Watch(build *v1.Build, completedHandler func() error) error
	GetBuild() (*v1.Build, error)
	GetBuildStatus() (v1.BuildPhase, error)
}

type DeploymentConfig

type DeploymentConfig struct {
	// contains filtered or unexported fields
}

func (*DeploymentConfig) Create

func (dc *DeploymentConfig) Create(name, namespace, fullName, version string, env interface{}, labels map[string]string, ports interface{}, replicas int32, force bool, healthEndPoint, nodeSelector string) error

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

type Oauth

type Oauth interface {
	oauthv1.OauthV1Interface
}

type Project

type Project struct {
	// contains filtered or unexported fields
}

func (*Project) Create

func (p *Project) Create(name, nodeSelector string) (*v1.Project, error)

func (*Project) Delete

func (p *Project) Delete(name string) error

func (*Project) Get

func (p *Project) Get(name string) (*v1.Project, error)

func (*Project) List

func (p *Project) List() (*v1.ProjectList, error)

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)

type Route

type Route struct {
	// contains filtered or unexported fields
}

func (*Route) Create

func (r *Route) Create(name, namespace string, port int32) (string, error)

func (*Route) Delete

func (r *Route) Delete(name, namespace string) error

func (*Route) Get

func (r *Route) Get(name, namespace string) (*v1.Route, error)

type Scm

type Scm struct {
	Url    string
	Ref    string
	Secret string
}

Jump to

Keyboard shortcuts

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