Documentation ¶
Index ¶
Constants ¶
View Source
const ( DownloaderFuncKey key = 0 PolicyKind policyKind = "policy" DataKind policyKind = "data" ConfigKind policyKind = "config" )
Variables ¶
This section is empty.
Functions ¶
func GoGetterDownload ¶
func SourceIsFile ¶
SourceIsFile returns true if go-getter thinks the src looks like a file path. Ensuring that the src is not a git url is important because go-getter can think that a git url is a file path url.
func SourceIsGit ¶
SourceIsGit returns true if go-getter thinks the src looks like a git url
func SourceIsHttp ¶
SourceIsHttp returns true if go-getter thinks the src looks like an http url
Types ¶
type PolicySource ¶
type PolicySource interface { GetPolicy(ctx context.Context, dest string, showMsg bool) (string, error) PolicyUrl() string Subdir() string }
PolicySource in an interface representing the location a policy source. Must implement the GetPolicy() method.
func FetchPolicySources ¶
func FetchPolicySources(s ecc.Source) ([]PolicySource, error)
FetchPolicySources returns an array of policy sources
func InlineData ¶
func InlineData(source []byte) PolicySource
Click to show internal directories.
Click to hide internal directories.