Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACP ¶
type ACP struct { ID string `json:"id"` WorkspaceID string `json:"workspaceId"` ClusterID string `json:"clusterId"` Version string `json:"version"` Name string `json:"name"` JWT *jwt.Config `json:"jwt"` BasicAuth *basicauth.Config `json:"basicAuth"` OIDC *oidc.Config `json:"oidc"` OIDCGoogle *OIDCGoogle `json:"oidcGoogle"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
ACP is an Access Control Policy definition.
type ACPInfo ¶
type ACPInfo struct {
Name string `json:"name"`
}
ACPInfo represents an ACP for an Ingress.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client allows interacting with the cluster service.
type FileOrContent ¶
type FileOrContent string
FileOrContent hold a file path or content.
func (FileOrContent) IsPath ¶
func (f FileOrContent) IsPath() bool
IsPath returns true if the FileOrContent is a file path, otherwise returns false.
func (FileOrContent) Read ¶
func (f FileOrContent) Read() ([]byte, error)
func (FileOrContent) String ¶
func (f FileOrContent) String() string
type Ingress ¶
type Ingress struct { ID string `json:"id"` WorkspaceID string `json:"workspaceId"` ClusterID string `json:"clusterId"` Namespace string `json:"namespace"` Name string `json:"name"` Domain string `json:"domain"` CustomDomains []Domain `json:"customDomains"` Service Service `json:"service"` ACP *ACPInfo `json:"acp,omitempty"` Version string `json:"version"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
Ingress represents an edge ingress configuration on a cluster.
type OIDCGoogle ¶ added in v0.9.0
OIDCGoogle is the Google OIDC configuration.
type Service ¶
type Service struct { ID string `json:"id"` Name string `json:"name"` Network string `json:"network"` Port int `json:"port"` }
Service represents an endpoint for an Ingress.
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher watches hub agent configuration.
func NewWatcher ¶
NewWatcher return a new Watcher.
func (*Watcher) AddListener ¶
AddListener adds a listener.
Click to show internal directories.
Click to hide internal directories.