Discover Packages
github.com/0xch4z/linodectl
internal
resource
resourceref
package
Version:
v0.0.0-...-ad3a29e
Opens a new window with list of versions in this module.
Published: Aug 23, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ListFromArgs parses a List of resource references from a list of arguments. If something other
than a resource label or numeric ID is specified, an error will be thrown.
ID returns a numeric ID if the List contains only an ID.
Otherwise, 0 is returned.
func (l List ) Identifiers() (map[string ]struct{}, map[int ]struct{})
Identifiers gets all the label and id identifiers from the list.
Label returns a label if the List contains only a single label.
Otherwise, it's an empty string.
Ref is a reference to a resource. This can either be an ID or Label.
ID returns the reference as a numeric ID or 0.
Label returns the reference as a string.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.