repositories

package
v0.0.0-...-4aeed9b Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDbHostRepository

type DynamoDbHostRepository struct {
	// contains filtered or unexported fields
}

func (*DynamoDbHostRepository) Get

func (r *DynamoDbHostRepository) Get(identifier string) (*models.Host, error)

func (*DynamoDbHostRepository) GetAll

func (r *DynamoDbHostRepository) GetAll() ([]*models.Host, error)

type DynamoDbRepositoryOwnerRepository

type DynamoDbRepositoryOwnerRepository struct {
	// contains filtered or unexported fields
}

func (*DynamoDbRepositoryOwnerRepository) Get

func (r *DynamoDbRepositoryOwnerRepository) Get(host string, organization string, repository string, expiry time.Time) ([]*models.RepositoryOwnerData, error)

func (*DynamoDbRepositoryOwnerRepository) Save

type HostRepository

type HostRepository interface {
	GetAll() ([]*models.Host, error)
	Get(identifier string) (*models.Host, error)
}

func NewHostRepository

func NewHostRepository(appConfig *config.AppConfig, secretClient clients.SecretClient) HostRepository

type RepositoryOwnerRepository

type RepositoryOwnerRepository interface {
	Get(host string, organization string, repository string, expiry time.Time) ([]*models.RepositoryOwnerData, error)
	Save(data []*models.RepositoryOwnerData, expiry time.Time) error
}

func NewRepositoryOwnerRepository

func NewRepositoryOwnerRepository(appConfig *config.AppConfig, secretClient clients.SecretClient) RepositoryOwnerRepository

Jump to

Keyboard shortcuts

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