Documentation
¶
Index ¶
- Constants
- func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error
- func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
- type AccessSpec
- func (a *AccessSpec) AccessMethod(cva internal.ComponentVersionAccess) (internal.AccessMethod, error)
- func (a *AccessSpec) Describe(internal.Context) string
- func (*AccessSpec) GetType() string
- func (a *AccessSpec) GlobalAccessSpec(accspeccpi.Context) accspeccpi.AccessSpec
- func (*AccessSpec) IsLocal(internal.Context) bool
- type AccessSpecOptions
Constants ¶
View Source
const ( Type = "git" TypeV1Alpha1 = Type + runtime.VersionSeparator + "v1alpha1" )
Variables ¶
This section is empty.
Functions ¶
func ConfigHandler ¶
func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
Types ¶
type AccessSpec ¶
type AccessSpec struct {
runtime.ObjectVersionedType `json:",inline"`
// Repository is the repository URL
Repository string `json:"repository"`
// Ref defines the hash of the commit
Ref string `json:"ref,omitempty"`
// Commit defines the hash of the commit in string format to checkout from the Ref
Commit string `json:"commit,omitempty"`
}
AccessSpec describes the access for a GitHub registry.
func New ¶
func New(url string, opts ...AccessSpecOptions) *AccessSpec
New creates a new git registry access spec version v1.
func (*AccessSpec) AccessMethod ¶
func (a *AccessSpec) AccessMethod(cva internal.ComponentVersionAccess) (internal.AccessMethod, error)
func (*AccessSpec) GetType ¶
func (*AccessSpec) GetType() string
func (*AccessSpec) GlobalAccessSpec ¶
func (a *AccessSpec) GlobalAccessSpec(accspeccpi.Context) accspeccpi.AccessSpec
type AccessSpecOptions ¶
type AccessSpecOptions func(s *AccessSpec)
AccessSpecOptions defines a set of options which can be applied to the access spec.
func WithCommit ¶
func WithCommit(commit string) AccessSpecOptions
func WithRef ¶
func WithRef(ref string) AccessSpecOptions
Click to show internal directories.
Click to hide internal directories.