Documentation
¶
Index ¶
Constants ¶
View Source
const ( MethodGet = "get" MethodPut = "put" MethodCheck = "check" )
Variables ¶
This section is empty.
Functions ¶
func WithResourceTypes ¶
func WithResourceTypes(ctx context.Context, resourceTypes ...*ResourceType) context.Context
Types ¶
type Output ¶
type Output struct {
Version map[string]string `json:"version,omitempty"`
Metadata []*OutputMetadata `json:"metadata,omitempty"`
}
type OutputMetadata ¶
type Resource ¶
type ResourceType ¶
type ResourceType struct {
Name string `json:"name,omitempty"`
Source *Source `json:"source,omitempty"`
Privileged bool `json:"privileged,omitempty"`
}
func ResourceTypesFrom ¶
func ResourceTypesFrom(ctx context.Context) (resourceTypes []*ResourceType, ok bool)
Click to show internal directories.
Click to hide internal directories.