files

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

func NewReader

func NewReader(opts ...ReaderOpt) *Reader

func (*Reader) ReadFile

func (r *Reader) ReadFile(uri string) ([]byte, error)

type ReaderOpt

type ReaderOpt func(*Reader)

func WithEKSAUserAgent added in v0.15.0

func WithEKSAUserAgent(eksAComponent, version string) ReaderOpt

WithEKSAUserAgent sets the user agent for a particular eks-a component and version. component should be something like "cli", "controller", "e2e", etc. version should generally be a semver, but when not available, any string is valid.

func WithEmbedFS

func WithEmbedFS(embedFS embed.FS) ReaderOpt

func WithUserAgent

func WithUserAgent(userAgent string) ReaderOpt

Jump to

Keyboard shortcuts

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