internal

package
v0.0.0-...-be29aee Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(verbose bool) *slog.Logger

NewLogger creates a new logger with the given options. The logger writes the messages in the format of JSON object to os.Stderr.

func Parse

func Parse(args []string) error

Types

type Client

type Client struct {
}

type Option

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

type Reporting

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

func NewReporting

func NewReporting(ctx context.Context, awsProfile string, verbose bool, template string) (Reporting, error)

NewReporting creates a new Reporting object with the given options.

func (*Reporting) Report

func (r *Reporting) Report(ctx context.Context) error

func (*Reporting) ReportOffset

func (r *Reporting) ReportOffset(ctx context.Context, offset time.Time) error

type Secret

type Secret struct {
	GithubToken string
}

Secret is a struct that aggregates credentias.

func ReadSecret

func ReadSecret(ctx context.Context, logger *slog.Logger, awsProfile string) (Secret, error)

type TemplatePullRequest

type TemplatePullRequest struct {
	Title string
	Login string
	URL   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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