Skip to content

Instantly share code, notes, and snippets.

@akash-gautam
Created August 21, 2018 10:38
Show Gist options
  • Save akash-gautam/68cb225b2796e335a96fc0560c771f5f to your computer and use it in GitHub Desktop.
Save akash-gautam/68cb225b2796e335a96fc0560c771f5f to your computer and use it in GitHub Desktop.
type.go contains the structure of objects of type sslconfig
package v1alpha1
import meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
type SslConfig struct {
meta_v1.TypeMeta `json:",inline"`
meta_v1.ObjectMeta `json:"metadata"`
Spec SslConfigSpec `json:"spec"`
Status SslConfigStatus `json:"status,omitempty"`
}
type SslConfigSpec struct {
Cert string `json:"cert"`
Key string `json:"key"`
Domain string `json:"domain"`
}
type SslConfigStatus struct {
State string `json:"state,omitempty"`
Message string `json:"message,omitempty"`
}
type SslConfigList struct {
meta_v1.TypeMeta `json:",inline"`
meta_v1.ListMeta `json:"metadata"`
Items []SslConfig `json:"items"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment