-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from akrejcir/improve-api
API: Improve API and increase version to v1
- Loading branch information
Showing
25 changed files
with
229 additions
and
1,937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package v1alpha1 | ||
package v1 | ||
|
||
const ( | ||
Group = "token.kubevirt.io" | ||
Version = "v1alpha1" | ||
Version = "v1" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package v1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// TokenResponse is the response object from /token endpoint. | ||
type TokenResponse struct { | ||
Token string `json:"token"` | ||
ExpirationTimestamp metav1.Time `json:"expirationTimestamp"` | ||
} | ||
|
||
// TlsProfile is the TLS configuration for the proxy. | ||
type TlsProfile struct { | ||
Ciphers []string `json:"ciphers,omitempty"` | ||
MinTLSVersion TLSProtocolVersion `json:"minTLSVersion,omitempty"` | ||
} | ||
|
||
// TLSProtocolVersion is a way to specify the protocol version used for TLS connections. | ||
type TLSProtocolVersion string | ||
|
||
const ( | ||
// VersionTLS10 is version 1.0 of the TLS security protocol. | ||
VersionTLS10 TLSProtocolVersion = "VersionTLS10" | ||
// VersionTLS11 is version 1.1 of the TLS security protocol. | ||
VersionTLS11 TLSProtocolVersion = "VersionTLS11" | ||
// VersionTLS12 is version 1.2 of the TLS security protocol. | ||
VersionTLS12 TLSProtocolVersion = "VersionTLS12" | ||
// VersionTLS13 is version 1.3 of the TLS security protocol. | ||
VersionTLS13 TLSProtocolVersion = "VersionTLS13" | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.