provider

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultAnsibleGalaxyURL is the URL of the upstream Ansible Galaxy
	// server managed by Red Hat.
	DefaultAnsibleGalaxyURL = "https://galaxy.ansible.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnsibleGalaxy

type AnsibleGalaxy struct {
	// contains filtered or unexported fields
}

AnsibleGalaxy fetches Ansible Roles information for the Ansible Galaxy APIs.

func NewAnsibleGalaxy

func NewAnsibleGalaxy(baseURL string) AnsibleGalaxy

NewAnsibleGalaxy creates a new AnsibleGalaxy provider. If baseURL is a nil string, DefaulAnsibleGalaxyURL will be used as baseURL for all the requests to the AnsibleGalaxy APIs.

func (AnsibleGalaxy) VersionsForRole

func (g AnsibleGalaxy) VersionsForRole(ctx context.Context, r types.Role) ([]string, error)

VersionsForRole returns the list of versions available on AnsibleGalaxy for the Role r.

type Git

type Git struct{}

Git fetches Ansible Roles information from remote Git repositories.

func NewGit

func NewGit() Git

NewGit creates a new Git provider.

func (Git) VersionsForRole

func (g Git) VersionsForRole(ctx context.Context, r types.Role) ([]string, error)

VersionsForRole returns the list of versions available on the upstream Git repository for Role r.

type RolesProvider

type RolesProvider interface {
	VersionsForRole(ctx context.Context, r types.Role) ([]string, error)
}

The RolesProvider interface define some methods to fetch information on Ansible Roles updates from upstream provider such as Git and Ansible Galaxy.

Jump to

Keyboard shortcuts

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