controllers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectFinalizerName = "finalizers.sentry.kubernetes.jaceys.me/project"
)
View Source
const (
	ProjectKeyFinalizerName = "finalizers.sentry.kubernetes.jaceys.me/projectkey"
)
View Source
const (
	TeamFinalizerName = "finalizers.sentry.kubernetes.jaceys.me/team"
)

Variables

View Source
var (
	ErrOutOfSync = errors.New("out of sync")
)

Functions

This section is empty.

Types

type ProjectKeyReconciler

type ProjectKeyReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Sentry *Sentry
}

ProjectKeyReconciler reconciles a ProjectKey object

func (*ProjectKeyReconciler) Reconcile

func (r *ProjectKeyReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*ProjectKeyReconciler) SetupWithManager

func (r *ProjectKeyReconciler) SetupWithManager(mgr ctrl.Manager) error

type ProjectReconciler

type ProjectReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Sentry *Sentry
}

ProjectReconciler reconciles a Project object

func (*ProjectReconciler) Reconcile

func (r *ProjectReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*ProjectReconciler) SetupWithManager

func (r *ProjectReconciler) SetupWithManager(mgr ctrl.Manager) error

type Sentry

type Sentry struct {
	Organization string
	Client       *SentryClient
}

type SentryClient

type SentryClient struct {
	Organizations SentryOrganizations
	Projects      SentryProjects
	Teams         SentryTeams
}

type SentryOrganizations

type SentryOrganizations interface {
	ListProjects(organizationSlug string, opts *sentry.ListOptions) ([]sentry.Project, *sentry.Response, error)
}

type SentryProjects

type SentryProjects interface {
	Update(organizationSlug, projectSlug string, params *sentry.UpdateProjectParams) (*sentry.Project, *sentry.Response, error)
	Delete(organizationSlug, projectSlug string) (*sentry.Response, error)
	ListKeys(organizationSlug, projectSlug string, opts *sentry.ListOptions) ([]sentry.ProjectKey, *sentry.Response, error)
	CreateKey(organizationSlug, projectSlug string, params *sentry.CreateProjectKeyParams) (*sentry.ProjectKey, *sentry.Response, error)
	UpdateKey(organizationSlug, projectSlug, keyID string, params *sentry.UpdateProjectKeyParams) (*sentry.ProjectKey, *sentry.Response, error)
	DeleteKey(organizationSlug, projectSlug, keyID string) (*sentry.Response, error)
}

type SentryTeams

type SentryTeams interface {
	List(organizationSlug string, opts *sentry.ListOptions) ([]sentry.Team, *sentry.Response, error)
	Create(organizationSlug string, params *sentry.CreateTeamParams) (*sentry.Team, *sentry.Response, error)
	Update(organizationSlug, teamSlug string, params *sentry.UpdateTeamParams) (*sentry.Team, *sentry.Response, error)
	Delete(organizationSlug, teamSlug string) (*sentry.Response, error)
	CreateProject(organizationSlug, teamSlug string, params *sentry.CreateProjectParams) (*sentry.Project, *sentry.Response, error)
}

type TeamReconciler

type TeamReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	Sentry *Sentry
}

TeamReconciler reconciles a Team object

func (*TeamReconciler) Reconcile

func (r *TeamReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*TeamReconciler) SetupWithManager

func (r *TeamReconciler) SetupWithManager(mgr ctrl.Manager) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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