Documentation
¶
Index ¶
- func NewAuthenticationInterceptor(clientAuth ClientAuth) connect.UnaryInterceptorFunc
- func NewClient(clientAuth ClientAuth, serverURL string, insecureSkipVerify bool) (api.IonscaleServiceClient, error)
- func StoreAuthToken(addr, token string, tailnetID uint64) error
- type ACLAutoApprovers
- type ACLEntry
- type ACLGrant
- type ACLNodeAttrGrant
- type ACLPolicy
- type ACLSSH
- type Anonymous
- type ClientAuth
- type IAMPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticationInterceptor ¶
func NewAuthenticationInterceptor(clientAuth ClientAuth) connect.UnaryInterceptorFunc
func NewClient ¶
func NewClient(clientAuth ClientAuth, serverURL string, insecureSkipVerify bool) (api.IonscaleServiceClient, error)
func StoreAuthToken ¶ added in v0.13.0
Types ¶
type ACLAutoApprovers ¶ added in v0.15.0
type ACLGrant ¶ added in v0.15.0
type ACLGrant struct {
Source []string `json:"src,omitempty" hujson:"Src,omitempty"`
Destination []string `json:"dst,omitempty" hujson:"Dst,omitempty"`
IP []tailcfg.ProtoPortRange `json:"ip,omitempty" hujson:"Ip,omitempty"`
App tailcfg.PeerCapMap `json:"app,omitempty" hujson:"App,omitempty"`
}
type ACLNodeAttrGrant ¶ added in v0.15.0
type ACLPolicy ¶ added in v0.15.0
type ACLPolicy struct {
Groups map[string][]string `json:"groups,omitempty" hujson:"Groups,omitempty"`
Hosts map[string]string `json:"hosts,omitempty" hujson:"Hosts,omitempty"`
ACLs []ACLEntry `json:"acls,omitempty" hujson:"ACLs,omitempty"`
TagOwners map[string][]string `json:"tagOwners,omitempty" hujson:"TagOwners,omitempty"`
AutoApprovers *ACLAutoApprovers `json:"autoApprovers,omitempty" hujson:"AutoApprovers,omitempty"`
SSH []ACLSSH `json:"ssh,omitempty" hujson:"SSH,omitempty"`
NodeAttrs []ACLNodeAttrGrant `json:"nodeAttrs,omitempty" hujson:"NodeAttrs,omitempty"`
Grants []ACLGrant `json:"grants,omitempty" hujson:"Grants,omitempty"`
}
type ACLSSH ¶ added in v0.15.0
type ACLSSH struct {
Action string `json:"action,omitempty" hujson:"Action,omitempty"`
Source []string `json:"src,omitempty" hujson:"Src,omitempty"`
Destination []string `json:"dst,omitempty" hujson:"Dst,omitempty"`
Users []string `json:"users,omitempty" hujson:"Users,omitempty"`
CheckPeriod string `json:"checkPeriod,omitempty" hujson:"CheckPeriod,omitempty"`
Recorder []string `json:"recorder,omitempty" hujson:"Recorder,omitempty"`
EnforceRecorder bool `json:"enforceRecorder,omitempty" hujson:"EnforceRecorder,omitempty"`
}
type ClientAuth ¶
func LoadClientAuth ¶
func LoadClientAuth(addr string, systemAdminKey string) (ClientAuth, error)
type IAMPolicy ¶ added in v0.15.0
type IAMPolicy struct {
Subs []string `json:"subs,omitempty" hujson:"Subs,omitempty"`
Emails []string `json:"emails,omitempty" hujson:"Emails,omitempty"`
Filters []string `json:"filters,omitempty" hujson:"Filters,omitempty"`
Roles map[string]string `json:"roles,omitempty" hujson:"Roles,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.