Documentation
¶
Index ¶
- Variables
- func GetCredentials(registry string, creds Credentials) (func(context.Context, string) (auth.Credential, error), error)
- func NewRepository(opts Repository) (*remote.Repository, error)
- func PullRecipe(ctx context.Context, repo Repository) (*recipe.Recipe, error)
- func PushRecipe(ctx context.Context, path string, opts Repository) error
- func SaveRemoteRecipe(ctx context.Context, dest string, opts Repository) error
- type Credentials
- type Repository
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)Functions ¶
func GetCredentials ¶
func GetCredentials(registry string, creds Credentials) (func(context.Context, string) (auth.Credential, error), error)
func NewRepository ¶
func NewRepository(opts Repository) (*remote.Repository, error)
NewRepository assembles an ORAS remote repository.
func PullRecipe ¶
func PushRecipe ¶
func PushRecipe(ctx context.Context, path string, opts Repository) error
func SaveRemoteRecipe ¶
func SaveRemoteRecipe(ctx context.Context, dest string, opts Repository) error
SaveRemoteRecipe pulls a recipe from repository and saves it to dest directory
Types ¶
type Credentials ¶
type Repository ¶
type Repository struct { Reference string PlainHTTP bool Credentials Credentials TLS TLSConfig }
Click to show internal directories.
Click to hide internal directories.