Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogQuery ¶
type LogQuery struct {
// StartTime is an optional time indiciating that only logs from after this time should be produced.
StartTime *time.Time `url:"startTime,unix"`
// EndTime is an optional time indiciating that only logs from before this time should be produced.
EndTime *time.Time `url:"endTime,unix"`
// ResourceFilter is a string indicating that logs should be limited to a resource or resources
ResourceFilter *ResourceFilter `url:"resourceFilter"`
}
LogQuery represents the parameters to a log query operation. All fields are optional, leaving them off returns all logs.
IDEA: We are currently using this type both within the engine and as an apitype. We should consider splitting this into separate types for the engine and on the wire.
type Provider ¶
type Provider interface {
// GetLogs returns logs matching a query
GetLogs(query LogQuery) (*[]LogEntry, error)
}
Provider is the interface for making operational requests about the state of a Component (or Components)
func AWSOperationsProvider ¶
AWSOperationsProvider creates an OperationsProvider capable of answering operational queries based on the underlying resources of the `@pulumi/aws` implementation.
func CloudOperationsProvider ¶
CloudOperationsProvider creates an OperationsProvider capable of answering operational queries based on the underlying resources of the `@pulumi/cloud-aws` implementation.
type Resource ¶
type Resource struct {
Stack tokens.QName
Project tokens.PackageName
State *resource.State
Parent *Resource
Children map[resource.URN]*Resource
}
Resource is a tree representation of a resource/component hierarchy
func NewResourceTree ¶
NewResourceTree constructs a tree representation of a resource/component hierarchy
type ResourceFilter ¶
type ResourceFilter string
ResourceFilter specifies a specific resource or subset of resources. It can be provided in three formats: - Full URN: "<namespace>::<alloc>::<type>::<name>" - Type + Name: "<type>::<name>" - Name: "<name>"