Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path"

"github.com/go-resty/resty"
"github.com/hyperpilotio/container-benchmarks/benchmark-agent/apis"
"github.com/hyperpilotio/container-benchmarks/benchmark-agent/model"
"github.com/spf13/viper"
)

Expand Down Expand Up @@ -77,7 +77,7 @@ func NewBenchmarkAgentClient(urlString string) (*BenchmarkAgentClient, error) {
}
}

func (client *BenchmarkAgentClient) CreateBenchmark(benchmark *apis.Benchmark) error {
func (client *BenchmarkAgentClient) CreateBenchmark(benchmark *model.Benchmark) error {
benchmarkJson, marshalErr := json.Marshal(benchmark)
if marshalErr != nil {
return errors.New("Unable to marshal benchmark to JSON: " + marshalErr.Error())
Expand Down Expand Up @@ -123,7 +123,7 @@ func (client *BenchmarkAgentClient) DeleteBenchmark(benchmarkName string) error
return nil
}

func (client *BenchmarkAgentClient) UpdateBenchmarkResources(benchmarkName string, resources *apis.Resources) error {
func (client *BenchmarkAgentClient) UpdateBenchmarkResources(benchmarkName string, resources *model.Resources) error {
resourcesJson, marshalErr := json.Marshal(resources)
if marshalErr != nil {
return errors.New("Unable to marshal resources to JSON: " + marshalErr.Error())
Expand Down
6 changes: 3 additions & 3 deletions models.go → model.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/hyperpilotio/container-benchmarks/benchmark-agent/apis"
"github.com/hyperpilotio/container-benchmarks/benchmark-agent/model"
)

type LoadTestWithIntensity struct {
Expand Down Expand Up @@ -43,8 +43,8 @@ type HTTPRequest struct {
}

type Stage struct {
Benchmarks []apis.Benchmark `json:"benchmarks"`
AppLoadTest LoadController `json:"loadTest"`
Benchmarks []model.Benchmark `json:"benchmarks"`
AppLoadTest LoadController `json:"loadTest"`
}

type Profile struct {
Expand Down