Documentation
¶
Index ¶
- Constants
- Variables
- func ParsePath(p string) (namespace, name, version string, ok bool)
- func Path(namespace, name, version string) string
- func Serves(t repo.PackageType) bool
- func ValidDependencies(deps map[string]string) bool
- func ValidName(v string) bool
- func ValidVersion(v string) bool
- type Handler
- func (Handler) Admit(ctx context.Context, env format.Env, c repo.Config, w format.Write) (format.Write, error)
- func (Handler) Deleted(context.Context, format.Env, repo.Config, []types.Item) error
- func (Handler) Deleting(context.Context, format.Env, repo.Config, types.Item) error
- func (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 Metadata
Constants ¶
View Source
const (
MaxArchiveBytes = 128 << 20
)
Variables ¶
View Source
var (
ErrArchive = errors.New("invalid Ansible collection archive")
)
Functions ¶
func Serves ¶
func Serves(t repo.PackageType) bool
func ValidDependencies ¶
ValidDependencies accepts Galaxy's comma-separated semantic-version ranges.
func ValidVersion ¶
Types ¶
type Handler ¶
type Metadata ¶
type Metadata struct {
Namespace string `json:"namespace"`
Name string `json:"name"`
Version string `json:"version"`
Dependencies map[string]string `json:"dependencies"`
Description string `json:"description,omitempty"`
SHA256 string `json:"sha256"`
}
Metadata is extracted from the Ansible collection's MANIFEST.json.
Click to show internal directories.
Click to hide internal directories.