예제 #1
0
func (command *commandUpdateMetadata) PreCSV(resource *handler.Resource) {
	resource.Result = map[string]interface{}{
		"Metadata": resource.Result,
	}
	resource.Keys = []string{"Metadata"}
	resource.FlattenMap("Metadata")
}
예제 #2
0
func (command *commandGetSchema) PreCSV(resource *handler.Resource) error {
	resource.Result = structs.Map(resource.Result)
	resource.FlattenMap("Attributes")
	resource.FlattenMap("Properties")
	resource.FlattenMap("SupportStatus")
	return nil
}
예제 #3
0
func (command *commandSetMetadata) PreCSV(resource *handler.Resource) error {
	resource.Result = map[string]interface{}{
		"Metadata": resource.Result,
	}
	resource.Keys = []string{"Metadata"}
	resource.FlattenMap("Metadata")
	return nil
}
예제 #4
0
func (command *commandUpdate) PreCSV(resource *handler.Resource) error {
	resource.Result = stackSingle(resource.Result)
	resource.FlattenMap("Parameters")
	resource.FlattenMap("Outputs")
	resource.FlattenMap("Links")
	resource.FlattenMap("NotificationTopics")
	resource.FlattenMap("Capabilities")
	return nil
}
예제 #5
0
func (command *commandAbandon) PreCSV(resource *handler.Resource) error {
	resource.Result = structs.Map(resource.Result)
	resource.FlattenMap("Template")
	resource.FlattenMap("Files")
	resource.FlattenMap("Environment")
	resource.FlattenMap("Resources")
	return nil
}
예제 #6
0
파일: get.go 프로젝트: satyamkotakonda/rack
func (command *commandGet) PreCSV(resource *handler.Resource) error {
	resource.Result = resourceSingle(resource.Result)
	resource.FlattenMap("Attributes")
	resource.FlattenMap("Links")
	resource.FlattenMap("RequiredBy")
	return nil
}
예제 #7
0
func (command *commandCreate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Metadata")
	resource.FlattenMap("Attachments")
	return nil
}
예제 #8
0
파일: get.go 프로젝트: nelsnelson/rack
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("AllocationPools")
}
예제 #9
0
파일: get.go 프로젝트: satyamkotakonda/rack
func (command *commandGet) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Metadata")
	return nil
}
예제 #10
0
파일: get.go 프로젝트: satyamkotakonda/rack
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("ExtraSpecs")
}
예제 #11
0
func (command *commandCreate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("AllocationPools")
	return nil
}
예제 #12
0
파일: get.go 프로젝트: nelsnelson/rack
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("FixedIPs")
}
예제 #13
0
func (command *commandUpdate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("FixedIPs")
	return nil
}
예제 #14
0
func (command *commandValidate) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Parameters")
	resource.FlattenMap("ParameterGroups")
	return nil
}
예제 #15
0
func (command *commandCreate) PreCSV(resource *handler.Resource) error {
	resource.Result = stackSingle(resource.Result)
	resource.FlattenMap("Links")
	return nil
}
예제 #16
0
파일: get.go 프로젝트: smashwilson/rack
func (command *commandGet) PreCSV(resource *handler.Resource) {
	resource.FlattenMap("Metadata")
}
예제 #17
0
파일: adopt.go 프로젝트: reaperzn/rack
func (command *commandAdopt) PreCSV(resource *handler.Resource) error {
	resource.FlattenMap("Links")
	return nil
}
예제 #18
0
파일: get.go 프로젝트: satyamkotakonda/rack
func (command *commandGet) PreCSV(resource *handler.Resource) error {
	resource.Result = eventSingle(resource.Result)
	resource.FlattenMap("Links")
	resource.FlattenMap("ResourceProperties")
	return nil
}