Documentation
¶
Index ¶
- func DockerCertsDir() string
- func ParseSchemelessURL(schemelessURL string) (*url.URL, error)
- func PolicyConfPath() string
- func RegistriesConfPath() string
- func RegistryCertsDir() string
- func SplitURL(url *url.URL) (parts []string, port string)
- func URLsMatch(globURL *url.URL, targetURL *url.URL) (bool, error)
- func URLsMatchStr(glob string, target string) (bool, error)
- type Facade
- type ICache
- type IRegistryInspector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DockerCertsDir ¶
func DockerCertsDir() string
func ParseSchemelessURL ¶ added in v1.1.1
ParseSchemelessURL parses a schemeless url and returns a url.URL url.Parse require a scheme, but ours don't have schemes. Adding a scheme to make url.Parse happy, then clear out the resulting scheme.
func PolicyConfPath ¶
func PolicyConfPath() string
func RegistriesConfPath ¶
func RegistriesConfPath() string
func RegistryCertsDir ¶
func RegistryCertsDir() string
func URLsMatch ¶ added in v1.1.1
URLsMatch checks whether the given target url matches the glob url, which may have glob wild cards in the host name.
Examples:
globURL=*.docker.io, targetURL=blah.docker.io => match globURL=*.docker.io, targetURL=not.right.io => no match
Note that we don't support wildcards in ports and paths yet.
Types ¶
type Facade ¶
type Facade struct {
// contains filtered or unexported fields
}
func FacadeSingleton ¶
func FacadeSingleton() *Facade
func (*Facade) GetCompatibleArchitecturesSet ¶
func (*Facade) StoreGlobalPullSecret ¶
type ICache ¶
type ICache interface { // GetCompatibleArchitecturesSet takes an image reference. a list of secrets and the client to the cluster and // returns a set of architectures that are compatible with the image reference. GetCompatibleArchitecturesSet(ctx context.Context, imageReference string, skipCache bool, secrets [][]byte) (sets.Set[string], error) }
type IRegistryInspector ¶
type IRegistryInspector interface { ICache // contains filtered or unexported methods }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.