api

package
Version: v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Branch     = version.Branch
	SHA        = version.SHA
	ShortSHA   = version.ShortSHA
	Author     = version.Author
	BuildHost  = version.BuildHost
	Version    = version.Version
	Date       = version.Date
	Prerelease = version.Prerelease
)

Functions

This section is empty.

Types

type Api

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

func NewApi

func NewApi(
	controllers []Controller,
	idv *identity.Validator,
	enforcer *casbin.Enforcer,
	c config.Config,
) (*Api, error)

func (*Api) Start

func (a *Api) Start(onShutdown ...func())

Start starts the Mux Service Listeners (API/Metrics)

type ArtifactController

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

func NewArtifactController

func NewArtifactController(manager *crud.Manager) *ArtifactController

func (ArtifactController) Setup

func (c ArtifactController) Setup(r *Routers)

type ClusterController

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

func NewClusterController

func NewClusterController(manager *crud.Manager) *ClusterController

func (ClusterController) Setup

func (c ClusterController) Setup(r *Routers)

type Controller

type Controller interface {
	Setup(*Routers)
}

func InitializeControllers

func InitializeControllers(
	deploymentPlanGenerator *plans.PlanGenerator,
	manager *crud.Manager,
	releaseSvc *releases.ReleaseSvc,
) ([]Controller, error)

type DefinitionsController

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

func NewDefinitionsController

func NewDefinitionsController(manager *crud.Manager) *DefinitionsController

func (DefinitionsController) Setup

func (c DefinitionsController) Setup(r *Routers)

type DeploymentPlansController

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

func NewDeploymentPlansController

func NewDeploymentPlansController(planGenerator *plans.PlanGenerator) *DeploymentPlansController

func (DeploymentPlansController) Setup

func (c DeploymentPlansController) Setup(r *Routers)

type DeploymentsController

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

func NewDeploymentsController

func NewDeploymentsController(manager *crud.Manager) *DeploymentsController

func (DeploymentsController) Setup

func (c DeploymentsController) Setup(r *Routers)

type DeploymentsCronController

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

func NewDeploymentsCronController

func NewDeploymentsCronController(manager *crud.Manager) *DeploymentsCronController

func (DeploymentsCronController) Setup

func (c DeploymentsCronController) Setup(r *Routers)

type EnvironmentController

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

func NewEnvironmentController

func NewEnvironmentController(manager *crud.Manager) *EnvironmentController

func (EnvironmentController) Setup

func (c EnvironmentController) Setup(r *Routers)

type EnvironmentFeedMapController

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

func NewEnvironmentFeedMapController

func NewEnvironmentFeedMapController(manager *crud.Manager) *EnvironmentFeedMapController

func (EnvironmentFeedMapController) Setup

type FeedController

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

func NewFeedController

func NewFeedController(manager *crud.Manager) *FeedController

func (FeedController) Setup

func (c FeedController) Setup(r *Routers)

type JobController

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

func NewJobController

func NewJobController(manager *crud.Manager) *JobController

func (JobController) Setup

func (c JobController) Setup(r *Routers)

type MetadataController

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

func NewMetadataController

func NewMetadataController(manager *crud.Manager) *MetadataController

func (MetadataController) Setup

func (c MetadataController) Setup(r *Routers)

type NamespaceController

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

func NewNamespaceController

func NewNamespaceController(manager *crud.Manager) *NamespaceController

func (NamespaceController) Setup

func (c NamespaceController) Setup(r *Routers)

type PingController

type PingController struct {
}

func NewPingController

func NewPingController() *PingController

func (PingController) Setup

func (c PingController) Setup(r *Routers)

type ReleaseController

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

func NewReleaseController

func NewReleaseController(s *releases.ReleaseSvc) *ReleaseController

func (ReleaseController) Setup

func (c ReleaseController) Setup(r *Routers)

type Role

type Role string
const (
	AdminRole   Role = "admin"
	UserRole    Role = "user"
	ServiceRole Role = "service"
	GuestRole   Role = "guest"
)

type Routers

type Routers struct {
	Auth      chi.Router
	Anonymous chi.Router
}

type ServiceController

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

func NewServiceController

func NewServiceController(manager *crud.Manager) *ServiceController

func (ServiceController) Setup

func (c ServiceController) Setup(r *Routers)

Jump to

Keyboard shortcuts

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