ecrf

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MIT Imports: 5 Imported by: 0

README

ecr-factory

AWS ECR factory

Installation

$ go get github.com/ushios/ecr-factory

Usage

Create repository and policy that are pull and push.

$ ecrf -id xxxxx -secret xxxx -name your_docker_repository_name

Documentation

Index

Constants

View Source
const (
	PullerPolicyName  = "ecr-pull-%s"
	PullerDescription = "Pull %s. Generated by ecr-factory"
	PusherPolicyName  = "ecr-push-%s"
	PusherDescription = "Push to %s. Generated by ecr-factory"
)

Variables

This section is empty.

Functions

func CreatePullerPolicy

func CreatePullerPolicy(i *iam.IAM, repo *ecr.Repository) (*iam.Policy, error)

CreatePullerPolicy create policy

func CreatePusherPolicy

func CreatePusherPolicy(i *iam.IAM, repo *ecr.Repository) (*iam.Policy, error)

CreatePusherPolicy create policy

func CreateRepository

func CreateRepository(c *ecr.ECR, name string) (*ecr.Repository, error)

CreateRepository create name repository

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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