github_organizations

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GithubOrgSFIDIndex = "github-org-sfid-index"
)

indexes

Variables

This section is empty.

Functions

func Configure

func Configure(api *operations.ClaAPI, service Service, eventService events.Service)

Configure setups handlers on api with service

func NewRepository

func NewRepository(awsSession *session.Session, stage string) repository

NewRepository creates a new instance of the githubOrganizations repository

Types

type GithubOrganization

type GithubOrganization struct {
	DateCreated                string `json:"date_created,omitempty"`
	DateModified               string `json:"date_modified,omitempty"`
	OrganizationInstallationID int64  `json:"organization_installation_id,omitempty"`
	OrganizationName           string `json:"organization_name,omitempty"`
	OrganizationSfid           string `json:"organization_sfid,omitempty"`
	Version                    string `json:"version,omitempty"`
}

GithubOrganization is data model for github organizations

type Repository

type Repository interface {
	GetGithubOrganizations(externalProjectID string) (*models.GithubOrganizations, error)
	AddGithubOrganization(externalProjectID string, input *models.CreateGithubOrganization) (*models.GithubOrganization, error)
	DeleteGithubOrganization(externalProjectID string, githubOrgName string) error
}

Repository interface defines the functions for the github organizations data model

type Service

type Service interface {
	GetGithubOrganizations(externalProjectID string) (*models.GithubOrganizations, error)
	AddGithubOrganization(externalProjectID string, input *models.CreateGithubOrganization) (*models.GithubOrganization, error)
	DeleteGithubOrganization(externalProjectID string, githubOrgName string) error
}

Service contains functions of GithubOrganizations service

func NewService

func NewService(repo Repository, ghRepository repositories.Repository) Service

NewService creates a new githubOrganizations service

Jump to

Keyboard shortcuts

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