controller

package
v0.0.0-...-f69cff6 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientConfig       *rest.Config
	KubeClient         kubernetes.Interface
	GitAPIServerClient cs.Interface
	CRDClient          crd_cs.ApiextensionsV1beta1Interface
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(clientConfig *rest.Config) *Config

func (*Config) New

func (c *Config) New() (*Controller, error)

type Controller

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

func (*Controller) NewRepositoryWebhook

func (c *Controller) NewRepositoryWebhook() hooks.AdmissionHook

func (*Controller) RunInformers

func (c *Controller) RunInformers(stopCh <-chan struct{})

type GithubREST

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

func NewGithubREST

func NewGithubREST(controller *Controller) *GithubREST

func (*GithubREST) Create

func (r *GithubREST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, _ *metav1.CreateOptions) (runtime.Object, error)

curl -k -H 'Content-Type: application/json' -d '{"action":"labeled"}' https://192.168.99.100:8443/apis/webhooks.git.kube.ci/v1alpha1/githubpullrequests

func (*GithubREST) GroupVersionKind

func (r *GithubREST) GroupVersionKind(containingGV schema.GroupVersion) schema.GroupVersionKind

func (*GithubREST) NamespaceScoped

func (r *GithubREST) NamespaceScoped() bool

func (*GithubREST) New

func (r *GithubREST) New() runtime.Object

Jump to

Keyboard shortcuts

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