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 (*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
Click to show internal directories.
Click to hide internal directories.