mocks

package
v0.0.0-...-cdab844 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct {
	Configs map[string][]*application_pb.Application
}

func NewGithub

func NewGithub() *Github

func (*Github) PullO5Configs

func (gm *Github) PullO5Configs(ctx context.Context, org string, repo string, ref string) ([]*application_pb.Application, error)

type S3

type S3 struct {
	awsapi.S3API
	// contains filtered or unexported fields
}

func NewS3

func NewS3() *S3

func (*S3) GetBucketLocation

func (s3m *S3) GetBucketLocation(ctx context.Context, input *s3.GetBucketLocationInput, optFns ...func(*s3.Options)) (*s3.GetBucketLocationOutput, error)

func (*S3) MockGet

func (s3m *S3) MockGet(bucket string, key string) ([]byte, bool)

func (*S3) MockGetHTTP

func (s3m *S3) MockGetHTTP(uri string) ([]byte, bool)

func (*S3) PutObject

func (s3m *S3) PutObject(ctx context.Context, input *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)

Jump to

Keyboard shortcuts

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