Documentation
¶
Overview ¶
Package vagrant validates Vagrant boxes and indexes their deployment properties.
Index ¶
- Constants
- func Serves(t repo.PackageType) bool
- func ValidComponent(s string) bool
- func ValidName(s string) bool
- func Verified(p types.Properties, sha string) (Identity, Box, bool)
- type Box
- type Handler
- func (Handler) Admit(ctx context.Context, env format.Env, c repo.Config, w format.Write) (format.Write, error)
- func (Handler) AdmitAnnotation(_ context.Context, _ format.Env, _ repo.Config, _ types.Item, ...) error
- func (Handler) Annotated(ctx context.Context, env format.Env, c repo.Config, it types.Item, ...) error
- func (Handler) Deleted(ctx context.Context, env format.Env, c repo.Config, _ []types.Item) error
- func (Handler) Deleting(context.Context, format.Env, repo.Config, types.Item) error
- func (h Handler) Deployed(ctx context.Context, env format.Env, c repo.Config, it types.Item) error
- func (Handler) Inspect(ctx context.Context, env format.Env, _ repo.Config, w format.Write) (any, error)
- func (Handler) Reindex(ctx context.Context, env format.Env, c repo.Config) error
- type Identity
Constants ¶
View Source
const ( MaxArchiveBytes int64 = 16 << 30 PropName = "box_name" PropProvider = "box_provider" PropVersion = "box_version" )
Variables ¶
This section is empty.
Functions ¶
func Serves ¶
func Serves(t repo.PackageType) bool
func ValidComponent ¶
Types ¶
type Box ¶
type Box struct {
Provider string `json:"provider"`
Architecture string `json:"architecture,omitempty"`
}
type Handler ¶
func (Handler) AdmitAnnotation ¶
type Identity ¶
type Identity struct{ Name, Provider, Version string }
func Properties ¶
func Properties(p types.Properties) (Identity, bool)
Click to show internal directories.
Click to hide internal directories.