fakecircle

package
v0.0.0-...-86954d8 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeGitHub    = "github"
	TypeBitbucket = "bitbucket"
	TypeCircleCI  = "circleci"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	ID        uuid.UUID
	Name      string
	CreatedAt time.Time
}

type EnvVarContext

type EnvVarContext struct {
	Variable  string
	Value     string
	UpdatedAt time.Time
	CreatedAt time.Time
}

type EnvVarProject

type EnvVarProject struct {
	Name      string
	Value     string
	CreatedAt time.Time
}

type NewContext

type NewContext struct {
	OrgID uuid.UUID
	Name  string
}

type NewEnvVarContext

type NewEnvVarContext struct {
	Variable string
	Value    string
}

type NewEnvVarProject

type NewEnvVarProject struct {
	Name  string
	Value string
}

type NewOrg

type NewOrg struct {
	Type string
	Name string
}

type NewProject

type NewProject struct {
	OrgID uuid.UUID
	Name  string
}

type Org

type Org struct {
	ID   uuid.UUID
	Type string
	Name string
	Slug string
}

type Project

type Project struct {
	ID   uuid.UUID
	Name string
	Slug string

	Org Org
}

type Service

type Service struct {
	http.Handler
	// contains filtered or unexported fields
}

func New

func New(tok string) *Service

func (*Service) AddContext

func (s *Service) AddContext(c NewContext) (Context, error)

func (*Service) AddContextEnv

func (s *Service) AddContextEnv(contextID uuid.UUID, ev NewEnvVarContext) (EnvVarContext, error)

func (*Service) AddOrg

func (s *Service) AddOrg(newOrg NewOrg) (Org, error)

func (*Service) AddProject

func (s *Service) AddProject(np NewProject) (Project, error)

func (*Service) AddProjectEnv

func (s *Service) AddProjectEnv(projectID uuid.UUID, ev NewEnvVarProject) (EnvVarProject, error)

func (*Service) Project

func (s *Service) Project(id uuid.UUID) (Project, error)

type VcsInfo

type VcsInfo struct {
	VcsURL        string `json:"vcs_url"`
	Provider      string `json:"provider"`
	DefaultBranch string `json:"default_branch"`
}

Jump to

Keyboard shortcuts

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