Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvalidValueError ¶
type InvalidValueError struct {
Name string
Value interface{}
}
func (InvalidValueError) Error ¶
func (e InvalidValueError) Error() string
type NoPropertyError ¶
type NoPropertyError struct {
Name string
}
func (NoPropertyError) Error ¶
func (e NoPropertyError) Error() string
type NotUpdateableError ¶
type NotUpdateableError struct {
Name string
}
func (NotUpdateableError) Error ¶
func (e NotUpdateableError) Error() string
type Property ¶
type Property struct {
// Getter gets the property
Getter func(context.Context) (interface{}, error)
// Setter sets the property. Setter is not required
Setter func(context.Context, interface{}) error
sync.Once
// contains filtered or unexported fields
}
func (*Property) GetWithCache ¶
GetWithCache
func (*Property) IsSettable ¶
IsSettable returns whether or not a property has a setter.
type PropertyMap ¶
PropertyMap represents a mapping of property names to getters and setters.
type Resource ¶
type Resource interface {
Properties() PropertyMap
}
Resource represents a Linode resource
Click to show internal directories.
Click to hide internal directories.