Documentation ¶
Overview ¶
Package publicecr allows clients to interact with public ECR repositories in the absense of a complete SDK provided by AWS.
Create a new ECRReader using New() and supply any functional options as required.
Example ¶
r := publicecr.New() images, err := r.ListTags(context.TODO(), "appmesh", "aws-appmesh-envoy") if err != nil { log.Fatal(err) } // Print all the image names for _, image := range images { log.Println(image.Name) }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultECRReaderOpts = &ECRReaderOpts{ baseURL: defaultBaseURL, logger: nil, }
DefaultECRReaderOpts is the default options for an ECRReader
Functions ¶
func WithBaseURL ¶
func WithBaseURL(url string) func(*ECRReaderOpts)
WithBaseURL returns a functional optional for setting the ECR base URL
func WithDebugLogger ¶
func WithDebugLogger(logger Logger) func(*ECRReaderOpts)
WithDebugLogging returns a functional optional for enabling debug logging
Types ¶
type ECRReader ¶
type ECRReader struct {
// contains filtered or unexported fields
}
func New ¶
func New(optFns ...func(*ECRReaderOpts)) *ECRReader
type ECRReaderOpts ¶
type ECRReaderOpts struct {
// contains filtered or unexported fields
}
ECRReaderOpts is an option set that can be provided to an ECRReader
Click to show internal directories.
Click to hide internal directories.