whitelist

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(api *operations.ClaAPI, service service, sessionStore *dynastore.Store)

Configure setups handlers on api with service

func NewRepository

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

NewRepository creates a new instance of the whitelist service

func NewService

func NewService(repo Repository, httpClient *http.Client) service

NewService creates a new whitelist service

Types

type Repository

type Repository interface {
	DeleteGithubOrganizationFromWhitelist(claGroupID, githubOrganizationID string) error
	AddGithubOrganizationToWhitelist(claGroupID, githubOrganizationID string) error
	GetGithubOrganizationsFromWhitelist(claGroupID string) ([]models.GithubOrg, error)
}

Repository interface defines the functions for the whitelist service

Jump to

Keyboard shortcuts

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