tagsalot

package
v0.0.0-...-4491e6e Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateECRRepository

func CreateECRRepository(repoName string)

func LoadConfigMapFile

func LoadConfigMapFile(filePath string) *inputtedImages

loadConfigMapFile returns struct for each image repo with tags provided

Types

type DockerHubClient

type DockerHubClient struct {
	Client     *http.Client
	UserAgent  string
	APIVersion string
	HubURL     *url.URL
}

Client for Dockerhub API

func NewHTTPClient

func NewHTTPClient(client *http.Client) *DockerHubClient

NewHTTPClient create new docker client

func (*DockerHubClient) Do

func (c *DockerHubClient) Do(req *http.Request) (resp *http.Response, err error)

Make the http request

func (*DockerHubClient) ListTags

func (c *DockerHubClient) ListTags(image string) (*http.Response, error)

ListTags list all image tags

func (*DockerHubClient) NewRequest

func (c *DockerHubClient) NewRequest(method, path string, body interface{}) (*http.Request, error)

NewRequest create new http request

type PolicyDocument

type PolicyDocument struct {
	Version   string
	Statement []StatementEntry
}

PolicyDocument in an IAM Policy

type PrincipalEntry

type PrincipalEntry struct {
	AWS []string
}

PrincipalEntry in an IAM Policy

type StatementEntry

type StatementEntry struct {
	Sid       string
	Effect    string
	Principal PrincipalEntry
	Action    []string
}

StatementEntry in an IAM Policy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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