Documentation ¶
Index ¶
- Variables
- func ChownRepo(c *gin.Context)
- func DeleteBuild(c *gin.Context)
- func DeleteBuildLogs(c *gin.Context)
- func DeleteRegistry(c *gin.Context)
- func DeleteRepo(c *gin.Context)
- func DeleteSecret(c *gin.Context)
- func DeleteToken(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func EventStreamSSE(c *gin.Context)
- func FileGet(c *gin.Context)
- func FileList(c *gin.Context)
- func GetBadge(c *gin.Context)
- func GetBuild(c *gin.Context)
- func GetBuildLast(c *gin.Context)
- func GetBuildLogs(c *gin.Context)
- func GetBuildQueue(c *gin.Context)
- func GetBuilds(c *gin.Context)
- func GetCC(c *gin.Context)
- func GetFeed(c *gin.Context)
- func GetLoginToken(c *gin.Context)
- func GetLogout(c *gin.Context)
- func GetProcLogs(c *gin.Context)
- func GetQueueInfo(c *gin.Context)
- func GetRegistry(c *gin.Context)
- func GetRegistryList(c *gin.Context)
- func GetRepo(c *gin.Context)
- func GetRepos(c *gin.Context)
- func GetSecret(c *gin.Context)
- func GetSecretList(c *gin.Context)
- func GetSelf(c *gin.Context)
- func GetUser(c *gin.Context)
- func GetUsers(c *gin.Context)
- func HandleAuth(c *gin.Context)
- func HandleLogin(c *gin.Context)
- func Health(c *gin.Context)
- func LogStreamSSE(c *gin.Context)
- func MoveRepo(c *gin.Context)
- func PatchRegistry(c *gin.Context)
- func PatchRepo(c *gin.Context)
- func PatchSecret(c *gin.Context)
- func PatchUser(c *gin.Context)
- func PostApproval(c *gin.Context)
- func PostBuild(c *gin.Context)
- func PostDecline(c *gin.Context)
- func PostHook(c *gin.Context)
- func PostRegistry(c *gin.Context)
- func PostRepo(c *gin.Context)
- func PostSecret(c *gin.Context)
- func PostToken(c *gin.Context)
- func PostUser(c *gin.Context)
- func RepairRepo(c *gin.Context)
- func ToConfig(c *gin.Context) *model.Settings
- func Version(c *gin.Context)
- func ZombieKill(c *gin.Context)
- type DroneServer
- func (s *DroneServer) Done(c oldcontext.Context, req *proto.DoneRequest) (*proto.Empty, error)
- func (s *DroneServer) Extend(c oldcontext.Context, req *proto.ExtendRequest) (*proto.Empty, error)
- func (s *DroneServer) Init(c oldcontext.Context, req *proto.InitRequest) (*proto.Empty, error)
- func (s *DroneServer) Log(c oldcontext.Context, req *proto.LogRequest) (*proto.Empty, error)
- func (s *DroneServer) Next(c oldcontext.Context, req *proto.NextRequest) (*proto.NextReply, error)
- func (s *DroneServer) Update(c oldcontext.Context, req *proto.UpdateRequest) (*proto.Empty, error)
- func (s *DroneServer) Upload(c oldcontext.Context, req *proto.UploadRequest) (*proto.Empty, error)
- func (s *DroneServer) Wait(c oldcontext.Context, req *proto.WaitRequest) (*proto.Empty, error)
- type RPC
- func (s *RPC) Done(c context.Context, id string, state rpc.State) error
- func (s *RPC) Extend(c context.Context, id string) error
- func (s *RPC) Init(c context.Context, id string, state rpc.State) error
- func (s *RPC) Log(c context.Context, id string, line *rpc.Line) error
- func (s *RPC) Next(c context.Context, filter rpc.Filter) (*rpc.Pipeline, error)
- func (s *RPC) Update(c context.Context, id string, state rpc.State) error
- func (s *RPC) Upload(c context.Context, id string, file *rpc.File) error
- func (s *RPC) Wait(c context.Context, id string) error
- type Syncer
Constants ¶
This section is empty.
Variables ¶
var Config = struct { Services struct { Pubsub pubsub.Publisher Queue queue.Queue Logs logging.Log Senders model.SenderService Secrets model.SecretService Registries model.RegistryService Environ model.EnvironService Limiter model.Limiter } Storage struct { // Users model.UserStore // Repos model.RepoStore // Builds model.BuildStore // Logs model.LogStore Config model.ConfigStore Files model.FileStore Procs model.ProcStore } Server struct { Key string Cert string Host string Port string Pass string RepoConfig string SessionExpires time.Duration } Pipeline struct { Limits model.ResourceLimit Volumes []string Networks []string Privileged []string } }{}
Config is an evil global configuration that will be used as we transition / refactor the codebase to move away from storing these values in the Context.
Functions ¶
func DeleteBuild ¶ added in v0.5.0
func DeleteBuildLogs ¶ added in v0.8.4
func DeleteRegistry ¶ added in v0.6.0
DeleteRegistry deletes the named registry from the database.
func DeleteRepo ¶ added in v0.5.0
func DeleteSecret ¶ added in v0.5.0
DeleteSecret deletes the named secret from the database.
func DeleteToken ¶ added in v0.5.0
func DeleteUser ¶ added in v0.5.0
func EventStreamSSE ¶ added in v0.8.0
func GetBuildLast ¶ added in v0.5.0
func GetBuildLogs ¶ added in v0.5.0
func GetBuildQueue ¶ added in v0.5.0
func GetLoginToken ¶ added in v0.5.0
func GetProcLogs ¶ added in v0.8.0
func GetQueueInfo ¶ added in v0.6.0
func GetRegistry ¶ added in v0.6.0
GetRegistry gets the name registry from the database and writes to the response in json format.
func GetRegistryList ¶ added in v0.6.0
GetRegistryList gets the registry list from the database and writes to the response in json format.
func GetSecret ¶ added in v0.6.0
GetSecret gets the named secret from the database and writes to the response in json format.
func GetSecretList ¶ added in v0.6.0
GetSecretList gets the secret list from the database and writes to the response in json format.
func HandleAuth ¶ added in v0.8.0
func HandleLogin ¶ added in v0.8.0
func LogStreamSSE ¶ added in v0.8.0
func PatchRegistry ¶ added in v0.6.0
PatchRegistry updates the registry in the database.
func PatchSecret ¶ added in v0.6.0
PatchSecret updates the secret in the database.
func PostApproval ¶ added in v0.6.0
func PostDecline ¶ added in v0.6.0
func PostRegistry ¶ added in v0.6.0
PostRegistry persists the registry to the database.
func PostSecret ¶ added in v0.5.0
PostSecret persists the secret to the database.
func RepairRepo ¶ added in v0.6.0
func ZombieKill ¶ added in v0.8.0
ZombieKill kills zombie processes stuck in an infinite pending or running state. This can only be invoked by administrators and may have negative effects.
Types ¶
type DroneServer ¶ added in v0.8.0
type DroneServer struct { Remote remote.Remote Queue queue.Queue Pubsub pubsub.Publisher Logger logging.Log Store store.Store Host string }
DroneServer is a grpc server implementation.
func (*DroneServer) Done ¶ added in v0.8.0
func (s *DroneServer) Done(c oldcontext.Context, req *proto.DoneRequest) (*proto.Empty, error)
func (*DroneServer) Extend ¶ added in v0.8.0
func (s *DroneServer) Extend(c oldcontext.Context, req *proto.ExtendRequest) (*proto.Empty, error)
func (*DroneServer) Init ¶ added in v0.8.0
func (s *DroneServer) Init(c oldcontext.Context, req *proto.InitRequest) (*proto.Empty, error)
func (*DroneServer) Log ¶ added in v0.8.0
func (s *DroneServer) Log(c oldcontext.Context, req *proto.LogRequest) (*proto.Empty, error)
func (*DroneServer) Next ¶ added in v0.8.0
func (s *DroneServer) Next(c oldcontext.Context, req *proto.NextRequest) (*proto.NextReply, error)
func (*DroneServer) Update ¶ added in v0.8.0
func (s *DroneServer) Update(c oldcontext.Context, req *proto.UpdateRequest) (*proto.Empty, error)
func (*DroneServer) Upload ¶ added in v0.8.0
func (s *DroneServer) Upload(c oldcontext.Context, req *proto.UploadRequest) (*proto.Empty, error)
func (*DroneServer) Wait ¶ added in v0.8.0
func (s *DroneServer) Wait(c oldcontext.Context, req *proto.WaitRequest) (*proto.Empty, error)
type RPC ¶ added in v0.6.0
type RPC struct {
// contains filtered or unexported fields
}