Documentation ¶
Index ¶
- func CreateJWT(accessToken string, secret string) (string, error)
- func SendGithubRequest(token string, client *http.Client, method, endpoint string, data []byte) ([]byte, error)
- type AuthResource
- type AuthResponse
- type BuildResource
- type DashboardPayload
- type Error
- type GithubAuthResponse
- type GithubUser
- type JWTClaims
- type PipelineResource
- type RepositoryResource
- type StageResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthResource ¶
func (*AuthResource) Register ¶
func (a *AuthResource) Register(container *restful.Container)
type AuthResponse ¶
type BuildResource ¶
type BuildResource struct { kv.KVClient *mc.MinioClient }
BuildResource defines the endpoints for builds
type DashboardPayload ¶
type DashboardPayload struct {
Author string `json:"author"`
}
DashboardPayload contains the data expected from a build hook coming from the dashboard
type GithubAuthResponse ¶
type GithubAuthResponse struct {
AccessToken string `json:"access_token"`
}
type GithubUser ¶
func GetGithubUser ¶
func GetGithubUser(token string) (*GithubUser, error)
type JWTClaims ¶
type JWTClaims struct {
GithubAccessToken string
}
JWTClaims contains the claims from the jwt
type PipelineResource ¶
type PipelineResource struct { kv.KVClient *mc.MinioClient kube.KubeClient }
PipelineResource defines the endpoints of a Pipeline
func (*PipelineResource) Register ¶
func (p *PipelineResource) Register(container *restful.Container)
Register registers the endpoint of this resource to the container
type RepositoryResource ¶
type RepositoryResource struct{}
RepositoryResource defines the endpoints to access the git repositories
func (*RepositoryResource) Register ¶
func (r *RepositoryResource) Register(container *restful.Container)
Register registers the endpoints to the container
type StageResource ¶
type StageResource struct { kv.KVClient *mc.MinioClient kube.KubeClient }
StageResource defines the endpoints for build stages
Click to show internal directories.
Click to hide internal directories.