openshift

package
v0.0.0-...-e435e13 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
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

func (b *BuildConfig) Build(env []system.Env) (*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() (*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

func (*BuildConfig) Watch

func (b *BuildConfig) Watch(build *v1.Build, completedHandler func() error) 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) Create

func (dc *DeploymentConfig) Create(env interface{}, ports interface{}, replicas int32, force bool, healthEndPoint string, injectSidecar func(in interface{}) (interface{}, error)) 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

func NewProject(name, displayName, desc string) (*Project, error)

func (*Project) Create

func (p *Project) Create() (*v1.Project, error)

func (*Project) Delete

func (p *Project) Delete() error

func (*Project) Get

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

func (*Project) List

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

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 (*RoleBinding) Delete

func (rb *RoleBinding) Delete() error

func (*RoleBinding) Get

func (*RoleBinding) Init

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

type Route

type Route struct {
	Name      string
	Namespace string

	Interface routev1.RouteInterface
}

func NewRoute

func NewRoute(name, namespace string) (*Route, error)

func (*Route) Create

func (r *Route) Create(port int32) error

func (*Route) Delete

func (r *Route) Delete() error

func (*Route) Get

func (r *Route) Get() (*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