Documentation
¶
Index ¶
- func GetCachedTenantDB(DBURL string, ctx context.Context) (*sql.DB, error)
- func RegisterNamespace(ctx context.Context, hostPort, namespace string, retentionDays int) error
- type Account
- type Config
- type CreateTenantConfig
- type DB
- type ExtendedMember
- type GithubAppClient
- type GithubConfig
- type GithubInstallationClient
- func (gic *GithubInstallationClient) GetExtendedTeamMember(ctx context.Context, teamMember Member) (*ExtendedMember, error)
- func (gic *GithubInstallationClient) GetTeamMembers(ctx context.Context, organizationName string, teamSlug string, teamName string, ...) (Members, error)
- func (gic *GithubInstallationClient) GetTeams(ctx context.Context, organizationName string, listOptions *ListOptions) (Teams, error)
- type ListOptions
- type Member
- type Members
- type Team
- type Teams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
TemporalHostPort string
TemporalOnboardingNamespace string
TemporalOnboardingQueueName string
UsersDSN string
}
func LoadConfig ¶
type CreateTenantConfig ¶
type CreateTenantConfig struct {
TursoApiURL string
TursoOrganizationSlug string
TursoDBGroupName string
TursoAuthToken string
TenantSeedDBURL string
OrganizationsTenantMapDBURL string
}
func LoadCreateTenantConfig ¶
func LoadCreateTenantConfig() (*CreateTenantConfig, error)
type ExtendedMember ¶
type GithubAppClient ¶
type GithubAppClient struct {
// contains filtered or unexported fields
}
func NewAppClient ¶
func NewAppClient(cfg GithubConfig) (*GithubAppClient, error)
func (*GithubAppClient) GetInstallationAccount ¶
type GithubConfig ¶
type GithubConfig struct {
GithubAppId int64
GithubAppPrivateKey []byte
RoundTripper http.RoundTripper
}
func LoadGithubConfig ¶
func LoadGithubConfig() (*GithubConfig, error)
type GithubInstallationClient ¶
type GithubInstallationClient struct {
// contains filtered or unexported fields
}
func GetCachedGithubInstallationClient ¶
func GetCachedGithubInstallationClient(cacheKey int64, config GithubConfig) (*GithubInstallationClient, error)
func NewInstallationClient ¶
func NewInstallationClient( installationId int64, cfg GithubConfig, ) (*GithubInstallationClient, error)
func (*GithubInstallationClient) GetExtendedTeamMember ¶
func (gic *GithubInstallationClient) GetExtendedTeamMember( ctx context.Context, teamMember Member, ) (*ExtendedMember, error)
func (*GithubInstallationClient) GetTeamMembers ¶
func (gic *GithubInstallationClient) GetTeamMembers( ctx context.Context, organizationName string, teamSlug string, teamName string, listOptions *ListOptions, ) (Members, error)
func (*GithubInstallationClient) GetTeams ¶
func (gic *GithubInstallationClient) GetTeams( ctx context.Context, organizationName string, listOptions *ListOptions, ) (Teams, error)
type ListOptions ¶
Click to show internal directories.
Click to hide internal directories.