Exemplo n.º 1
0
func compareObjects(t *testing.T, expected interface{}, actual interface{}) {
	if !reflect.DeepEqual(expected, actual) {
		t.Errorf("\nExpected %s:\n%s\nActual %s:\n%s\n",
			reflect.ValueOf(expected).Kind(),
			awsutil.Prettify(expected),
			reflect.ValueOf(actual).Kind(),
			awsutil.Prettify(actual))
	}
}
Exemplo n.º 2
0
func ExampleCopyOf() {
	type Foo struct {
		A int
		B []*string
	}

	// Create the initial value
	str1 := "hello"
	str2 := "bye bye"
	f1 := &Foo{A: 1, B: []*string{&str1, &str2}}

	// Do the copy
	v := awsutil.CopyOf(f1)
	var f2 *Foo = v.(*Foo)

	// Print the result
	fmt.Println(awsutil.Prettify(f2))

	// Output:
	// {
	//   A: 1,
	//   B: ["hello","bye bye"]
	// }
}
Exemplo n.º 3
0
// String returns the string representation
func (s ListMetricsOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 4
0
// String returns the string representation
func (s EnableAlarmActionsOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 5
0
// String returns the string representation
func (s DimensionFilter) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 6
0
// String returns the string representation
func (s DescribeAlarmsForMetricInput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 7
0
// String returns the string representation
func (s DeleteAlarmsInput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 8
0
// String returns the string representation
func (s AlarmHistoryItem) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 9
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s DeleteRepositoryOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 10
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s CreateRepositoryInput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 11
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s CompleteLayerUploadOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 12
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s BatchGetImageOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 13
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s BatchDeleteImageInput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 14
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s BatchCheckLayerAvailabilityOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 15
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s AuthorizationData) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 16
0
// String returns the string representation
func (s SetAlarmStateOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 17
0
// String returns the string representation
func (s StatisticSet) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 18
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s DeleteRepositoryPolicyInput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 19
0
// String returns the string representation
func (s Datapoint) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 20
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s DescribeRepositoriesOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 21
0
// String returns the string representation
func (s DescribeAlarmHistoryInput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 22
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s GetAuthorizationTokenOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 23
0
// String returns the string representation
func (s DescribeAlarmsOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 24
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s GetDownloadUrlForLayerOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 25
0
// String returns the string representation
func (s DisableAlarmActionsInput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 26
0
Arquivo: api.go Projeto: kuenzaa/rack
// String returns the string representation
func (s GetRepositoryPolicyOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 27
0
// String returns the string representation
func (s GetMetricStatisticsOutput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 28
0
// String returns the string representation
func (s PutMetricAlarmInput) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 29
0
// String returns the string representation
func (s Metric) String() string {
	return awsutil.Prettify(s)
}
Exemplo n.º 30
0
// String returns the string representation
func (s PutMetricDataOutput) String() string {
	return awsutil.Prettify(s)
}