Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ttl in rgs #38

Merged
merged 2 commits into from
Mar 5, 2024
Merged
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
29 changes: 26 additions & 3 deletions generate/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@
},
"status": {
"$ref": "#/definitions/routeGroup.Status"
},
"updatedAt": {
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -449,6 +452,9 @@
},
"match": {
"$ref": "#/definitions/routeGroup.Match"
},
"ttl": {
"$ref": "#/definitions/routeGroup.TTL"
}
},
"type": "object"
Expand Down Expand Up @@ -484,6 +490,23 @@
"reason": {
"description": "Reason is a machine readable explanation of why\nthe sandbox is healthy or not.",
"type": "string"
},
"scheduledDeleteTime": {
"description": "ScheduledDeleteTime returns the formatted and computed ttl based on the Duration\nand OffsetFrom",
"type": "string"
}
},
"type": "object"
},
"routeGroup.TTL": {
"properties": {
"duration": {
"description": "Duration represents the duration until routegroup's end of life.\nIt should be an unsigned integer not exceeding 32 bits followed by\na units character, which can be one of the following.\n - 'm' for minutes\n - 'h' for hours\n - 'd' for days\n - 'w' for weeks",
"type": "string"
},
"offsetFrom": {
"description": "OffsetFrom indicates what the Duration is relative to. It\nmay be the empty string, \"noMatchedSandboxes\", \"createdAt\" or \"updatedAt\". The empty string\ndefaults to meaning \"noMatchedSandboxes\".",
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -823,7 +846,7 @@
"type": "array"
},
"localMachineID": {
"description": "Identifier of the machine from where a sandbox containing local workloads was created or is intended to be ran",
"description": "Identifier of the machine from where a sandbox containing local workloads\nwas created or is intended to be ran",
"type": "string"
},
"resources": {
Expand All @@ -846,7 +869,7 @@
"sandbox.TTL": {
"properties": {
"duration": {
"description": "Duration represents the duration until sandbox end of life.\nIt should be an unsigned integer not exceeding 32 bits followed by\na units character, which can be one of the following.\n - 'm' for minutes\n - 'h' for hours\n - 'd' for days\n - 'w' for weeks",
"description": "Duration represents the duration until sandbox end of life.\nIt should be an unsigned integer not exceeding 32 bits followed by\na units character, which can be one of the following.\n - 'm' for minutes\n - 'h' for hours\n - 'd' for days\n - 'w' for weeks",
"type": "string"
},
"offsetFrom": {
Expand Down Expand Up @@ -2115,4 +2138,4 @@
}
},
"swagger": "2.0"
}
}
34 changes: 17 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ module github.com/signadot/go-sdk
go 1.21

require (
github.com/go-openapi/errors v0.20.4
github.com/go-openapi/runtime v0.26.0
github.com/go-openapi/strfmt v0.21.7
github.com/go-openapi/swag v0.22.4
github.com/go-openapi/validate v0.22.1
github.com/go-openapi/errors v0.21.1
github.com/go-openapi/runtime v0.27.2
github.com/go-openapi/strfmt v0.22.2
github.com/go-openapi/swag v0.22.10
github.com/go-openapi/validate v0.23.2
)

require (
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/analysis v0.21.4 // indirect
github.com/go-openapi/jsonpointer v0.20.0 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/loads v0.21.2 // indirect
github.com/go-openapi/spec v0.20.9 // indirect
github.com/go-openapi/analysis v0.22.3 // indirect
github.com/go-openapi/jsonpointer v0.20.3 // indirect
github.com/go-openapi/jsonreference v0.20.5 // indirect
github.com/go-openapi/loads v0.21.6 // indirect
github.com/go-openapi/spec v0.20.15 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
go.mongodb.org/mongo-driver v1.12.1 // indirect
go.opentelemetry.io/otel v1.19.0 // indirect
go.opentelemetry.io/otel/metric v1.19.0 // indirect
go.opentelemetry.io/otel/trace v1.19.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
go.mongodb.org/mongo-driver v1.14.0 // indirect
go.opentelemetry.io/otel v1.24.0 // indirect
go.opentelemetry.io/otel/metric v1.24.0 // indirect
go.opentelemetry.io/otel/trace v1.24.0 // indirect
golang.org/x/sync v0.6.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading
Loading