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 ¶
func DeleteBuildLogs ¶
func DeleteRegistry ¶
DeleteRegistry deletes the named registry from the database.
func DeleteRepo ¶
func DeleteSecret ¶
DeleteSecret deletes the named secret from the database.
func DeleteToken ¶
func DeleteUser ¶
func EventStreamSSE ¶
func GetBuildLast ¶
func GetBuildLogs ¶
func GetBuildQueue ¶
func GetLoginToken ¶
func GetProcLogs ¶
func GetQueueInfo ¶
func GetRegistry ¶
GetRegistry gets the name registry from the database and writes to the response in json format.
func GetRegistryList ¶
GetRegistryList gets the registry list from the database and writes to the response in json format.
func GetSecret ¶
GetSecret gets the named secret from the database and writes to the response in json format.
func GetSecretList ¶
GetSecretList gets the secret list from the database and writes to the response in json format.
func HandleAuth ¶
func HandleLogin ¶
func LogStreamSSE ¶
func PatchRegistry ¶
PatchRegistry updates the registry in the database.
func PostApproval ¶
func PostDecline ¶
func PostRegistry ¶
PostRegistry persists the registry to the database.
func RepairRepo ¶
func ZombieKill ¶
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 ¶
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 ¶
func (s *DroneServer) Done(c oldcontext.Context, req *proto.DoneRequest) (*proto.Empty, error)
func (*DroneServer) Extend ¶
func (s *DroneServer) Extend(c oldcontext.Context, req *proto.ExtendRequest) (*proto.Empty, error)
func (*DroneServer) Init ¶
func (s *DroneServer) Init(c oldcontext.Context, req *proto.InitRequest) (*proto.Empty, error)
func (*DroneServer) Log ¶
func (s *DroneServer) Log(c oldcontext.Context, req *proto.LogRequest) (*proto.Empty, error)
func (*DroneServer) Next ¶
func (s *DroneServer) Next(c oldcontext.Context, req *proto.NextRequest) (*proto.NextReply, error)
func (*DroneServer) Update ¶
func (s *DroneServer) Update(c oldcontext.Context, req *proto.UpdateRequest) (*proto.Empty, error)
func (*DroneServer) Upload ¶
func (s *DroneServer) Upload(c oldcontext.Context, req *proto.UploadRequest) (*proto.Empty, error)
func (*DroneServer) Wait ¶
func (s *DroneServer) Wait(c oldcontext.Context, req *proto.WaitRequest) (*proto.Empty, error)
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}