Documentation ¶
Index ¶
- Variables
- func ChownRepo(c *gin.Context)
- func DeleteBuild(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 EventStream(c *gin.Context)
- func EventStreamSSE(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 GetLogin(c *gin.Context)
- func GetLoginToken(c *gin.Context)
- func GetLogout(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 LogStream(c *gin.Context)
- func LogStreamSSE(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 ShowIndex(c *gin.Context)
- func ShowLogin(c *gin.Context)
- func ShowLoginForm(c *gin.Context)
- func ToConfig(c *gin.Context) *model.Settings
- 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
- type Website
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 } 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 } 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 DeleteRegistry ¶ added in v0.6.0
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 EventStream ¶
func EventStreamSSE ¶ added in v0.8.0
func GetBuildLast ¶
func GetBuildLogs ¶
func GetBuildQueue ¶
func GetLoginToken ¶
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 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 RepairRepo ¶ added in v0.6.0
func ShowLoginForm ¶
ShowLoginForm displays a login form for systems like Gogs that do not yet support oauth workflows.
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
}
type Website ¶
type Website interface { Page(rw http.ResponseWriter, r *http.Request, u *model.User) File(rw http.ResponseWriter, r *http.Request) Routes() []string }
Website defines an interface to serve the user interface.
func NewLocalWebsite ¶
NewLocalWebsite returns a new website loader.