Documentation
¶
Index ¶
- Constants
- func IsGqlKeyActive(item *GqlKeyIDEdge) bool
- func IsGqlResourceActive(item *GqlResourceIDEdge) bool
- type AddResourceGroups
- type BooleanFilterOperatorInput
- type ConnectorEdge
- type ConnectorEntityResponse
- type ConnectorTokensResponse
- type Connectors
- type CreateConnector
- type CreateGroup
- type CreateRemoteNetwork
- type CreateResource
- type CreateServiceAccount
- type CreateServiceAccountKey
- type DeleteConnector
- type DeleteGroup
- type DeleteRemoteNetwork
- type DeleteResource
- type DeleteServiceAccount
- type DeleteServiceAccountKey
- type GenerateConnectorTokens
- type GqlKeyIDEdge
- type GqlResourceIDEdge
- type GqlService
- type GroupEdge
- type GroupEntityResponse
- type GroupFilterInput
- type GroupTypeFilterOperatorInput
- type Groups
- type IDName
- type NextPageFunc
- type OkError
- type PageInfo
- type PaginatedResource
- type PortRange
- type Protocol
- type Protocols
- type ReadConnector
- type ReadConnectors
- type ReadGroup
- type ReadGroups
- type ReadRemoteNetworkByID
- type ReadRemoteNetworkByName
- type ReadRemoteNetworks
- type ReadResource
- type ReadResourceGroups
- type ReadResources
- type ReadResourcesByName
- type ReadSecurityPolicies
- type ReadSecurityPolicy
- type ReadServiceAccount
- type ReadServiceAccountKey
- type ReadServiceAccounts
- type ReadShallowServiceAccount
- type ReadShallowServiceAccounts
- type ReadUser
- type ReadUsers
- type RemoteNetworkEdge
- type RemoteNetworkEntityResponse
- type RemoteNetworks
- type ResourceEdge
- type ResourceEntityResponse
- type ResourceNode
- type Resources
- type RevokeServiceAccountKey
- type SecurityPolicies
- type SecurityPolicyEdge
- type ServiceAccountEdge
- type ServiceAccountEntityResponse
- type ServiceAccountFilterInput
- type ServiceAccountKeyEntityCreateResponse
- type ServiceAccountKeyEntityResponse
- type ServiceAccounts
- type ServiceEdge
- type Services
- type StringFilter
- type StringFilterOperationInput
- type UpdateConnector
- type UpdateGroup
- type UpdateRemoteNetwork
- type UpdateResource
- type UpdateResourceActiveState
- type UpdateResourceRemoveGroups
- type UpdateServiceAccount
- type UpdateServiceAccountKey
- type UpdateServiceAccountRemoveResources
- type UserEdge
- type Users
Constants ¶
View Source
const ( CursorServices = "servicesEndCursor" CursorServiceResources = "resourcesEndCursor" CursorServiceKeys = "keysEndCursor" )
View Source
const CursorConnectors = "connectorsEndCursor"
View Source
const CursorGroups = "groupsEndCursor"
View Source
const CursorPolicies = "policiesEndCursor"
View Source
const CursorRemoteNetworks = "remoteNetworksEndCursor"
View Source
const CursorResources = "resourcesEndCursor"
View Source
const CursorServiceAccounts = "serviceAccountsEndCursor"
View Source
const CursorUsers = "usersEndCursor"
Variables ¶
This section is empty.
Functions ¶
func IsGqlKeyActive ¶ added in v0.2.4
func IsGqlKeyActive(item *GqlKeyIDEdge) bool
func IsGqlResourceActive ¶ added in v0.2.4
func IsGqlResourceActive(item *GqlResourceIDEdge) bool
Types ¶
type AddResourceGroups ¶ added in v0.3.0
type AddResourceGroups struct {
OkError `graphql:"resourceUpdate(id: $id, addedGroupIds: $groupIds)"`
}
type BooleanFilterOperatorInput ¶ added in v0.3.0
type BooleanFilterOperatorInput struct {
Eq bool `json:"eq"`
}
type ConnectorEdge ¶
type ConnectorEdge struct {
Node *gqlConnector
}
type ConnectorEntityResponse ¶
type ConnectorEntityResponse struct { Entity *gqlConnector OkError }
type ConnectorTokensResponse ¶
type ConnectorTokensResponse struct { ConnectorTokens gqlConnectorTokens OkError }
type Connectors ¶
type Connectors struct { PaginatedResource[*ConnectorEdge] }
func (Connectors) ToModel ¶
func (c Connectors) ToModel() []*model.Connector
type CreateConnector ¶
type CreateConnector struct {
ConnectorEntityResponse `graphql:"connectorCreate(remoteNetworkId: $remoteNetworkId, name: $connectorName)"`
}
type CreateGroup ¶
type CreateGroup struct {
GroupEntityResponse `graphql:"groupCreate(name: $name)"`
}
func (CreateGroup) ToModel ¶
func (q CreateGroup) ToModel() *model.Group
type CreateRemoteNetwork ¶
type CreateRemoteNetwork struct {
RemoteNetworkEntityResponse `graphql:"remoteNetworkCreate(name: $name, isActive: $isActive, location: $location)"`
}
func (CreateRemoteNetwork) ToModel ¶
func (q CreateRemoteNetwork) ToModel() *model.RemoteNetwork
type CreateResource ¶
type CreateResource struct {
ResourceEntityResponse `` /* 211-byte string literal not displayed */
}
type CreateServiceAccount ¶
type CreateServiceAccount struct {
ServiceAccountEntityResponse `graphql:"serviceAccountCreate(name: $name)"`
}
func (CreateServiceAccount) ToModel ¶
func (q CreateServiceAccount) ToModel() *model.ServiceAccount
type CreateServiceAccountKey ¶
type CreateServiceAccountKey struct {
ServiceAccountKeyEntityCreateResponse `graphql:"serviceAccountKeyCreate(expirationTime: $expirationTime, serviceAccountId: $serviceAccountId, name: $name)"`
}
func (CreateServiceAccountKey) ToModel ¶
func (q CreateServiceAccountKey) ToModel() (*model.ServiceKey, error)
type DeleteConnector ¶
type DeleteConnector struct {
OkError `graphql:"connectorDelete(id: $id)"`
}
type DeleteGroup ¶
type DeleteGroup struct {
OkError `graphql:"groupDelete(id: $id)" json:"groupDelete"`
}
type DeleteRemoteNetwork ¶
type DeleteRemoteNetwork struct {
OkError `graphql:"remoteNetworkDelete(id: $id)"`
}
type DeleteResource ¶
type DeleteResource struct {
OkError `graphql:"resourceDelete(id: $id)"`
}
type DeleteServiceAccount ¶
type DeleteServiceAccount struct {
OkError `graphql:"serviceAccountDelete(id: $id)"`
}
type DeleteServiceAccountKey ¶
type DeleteServiceAccountKey struct {
OkError `graphql:"serviceAccountKeyDelete(id: $id)"`
}
type GenerateConnectorTokens ¶
type GenerateConnectorTokens struct {
ConnectorTokensResponse `graphql:"connectorGenerateTokens(connectorId: $connectorId)"`
}
func (GenerateConnectorTokens) ToModel ¶
func (q GenerateConnectorTokens) ToModel() *model.ConnectorTokens
type GqlKeyIDEdge ¶ added in v0.2.4
type GqlKeyIDEdge struct {
Node *gqlKeyID
}
type GqlResourceIDEdge ¶ added in v0.2.4
type GqlResourceIDEdge struct {
Node *gqlResourceID
}
type GqlService ¶ added in v0.2.4
type GqlService struct { IDName Resources gqlResourceIDs `graphql:"resources(after: $resourcesEndCursor)"` Keys gqlKeyIDs `graphql:"keys(after: $keysEndCursor)"` }
func (*GqlService) ToModel ¶ added in v0.2.4
func (s *GqlService) ToModel() *model.ServiceAccount
type GroupEntityResponse ¶
type GroupEntityResponse struct { Entity *gqlGroup OkError }
type GroupFilterInput ¶ added in v0.3.0
type GroupFilterInput struct { Name *StringFilterOperationInput `json:"name"` Type GroupTypeFilterOperatorInput `json:"type"` IsActive BooleanFilterOperatorInput `json:"isActive"` }
func NewGroupFilterInput ¶ added in v0.3.0
func NewGroupFilterInput(input *model.GroupsFilter) *GroupFilterInput
type GroupTypeFilterOperatorInput ¶ added in v0.3.0
type GroupTypeFilterOperatorInput struct {
In []string `json:"in"`
}
type Groups ¶
type Groups struct { PaginatedResource[*GroupEdge] }
type NextPageFunc ¶
type PaginatedResource ¶
func (*PaginatedResource[E]) FetchPages ¶
func (r *PaginatedResource[E]) FetchPages(ctx context.Context, fetchNextPage NextPageFunc[E], variables map[string]interface{}) error
type ReadConnector ¶
type ReadConnector struct {
Connector *gqlConnector `graphql:"connector(id: $id)"`
}
func (ReadConnector) ToModel ¶
func (q ReadConnector) ToModel() *model.Connector
type ReadConnectors ¶
type ReadConnectors struct {
Connectors `graphql:"connectors(after: $connectorsEndCursor)"`
}
func (ReadConnectors) ToModel ¶
func (q ReadConnectors) ToModel() []*model.Connector
type ReadGroups ¶
type ReadGroups struct {
Groups `graphql:"groups(filter: $filter, after: $groupsEndCursor)"`
}
type ReadRemoteNetworkByID ¶
type ReadRemoteNetworkByID struct {
RemoteNetwork *gqlRemoteNetwork `graphql:"remoteNetwork(id: $id)"`
}
func (ReadRemoteNetworkByID) ToModel ¶
func (r ReadRemoteNetworkByID) ToModel() *model.RemoteNetwork
type ReadRemoteNetworkByName ¶
type ReadRemoteNetworkByName struct {
RemoteNetworks gqlRemoteNetworks `graphql:"remoteNetworks(filter: {name: {eq: $name}})"`
}
type ReadRemoteNetworks ¶
type ReadRemoteNetworks struct {
RemoteNetworks `graphql:"remoteNetworks(after: $remoteNetworksEndCursor)"`
}
type ReadResource ¶
type ReadResource struct {
Resource *gqlResource `graphql:"resource(id: $id)"`
}
type ReadResourceGroups ¶
type ReadResourceGroups struct {
Resource *gqlResourceGroups `graphql:"resource(id: $id)"`
}
type ReadResources ¶
type ReadResources struct {
Resources `graphql:"resources(after: $resourcesEndCursor)"`
}
type ReadResourcesByName ¶
type ReadResourcesByName struct {
Resources `graphql:"resources(filter: {name: {eq: $name}}, after: $resourcesEndCursor)"`
}
type ReadSecurityPolicies ¶ added in v0.2.4
type ReadSecurityPolicies struct {
SecurityPolicies `graphql:"securityPolicies(after: $policiesEndCursor)"`
}
func (ReadSecurityPolicies) ToModel ¶ added in v0.2.4
func (q ReadSecurityPolicies) ToModel() []*model.SecurityPolicy
type ReadSecurityPolicy ¶ added in v0.2.4
type ReadSecurityPolicy struct {
SecurityPolicy *gqlSecurityPolicy `graphql:"securityPolicy(id: $id, name: $name)"`
}
func (ReadSecurityPolicy) ToModel ¶ added in v0.2.4
func (q ReadSecurityPolicy) ToModel() *model.SecurityPolicy
type ReadServiceAccount ¶
type ReadServiceAccount struct {
Service *GqlService `graphql:"serviceAccount(id: $id)"`
}
type ReadServiceAccountKey ¶
type ReadServiceAccountKey struct {
ServiceAccountKey *gqlServiceKey `graphql:"serviceAccountKey(id: $id)"`
}
func (ReadServiceAccountKey) ToModel ¶
func (q ReadServiceAccountKey) ToModel() (*model.ServiceKey, error)
type ReadServiceAccounts ¶
type ReadServiceAccounts struct {
Services `graphql:"serviceAccounts(filter: $filter, after: $servicesEndCursor)"`
}
type ReadShallowServiceAccount ¶ added in v0.2.4
type ReadShallowServiceAccount struct {
ServiceAccount *gqlServiceAccount `graphql:"serviceAccount(id: $id)"`
}
func (ReadShallowServiceAccount) ToModel ¶ added in v0.2.4
func (q ReadShallowServiceAccount) ToModel() *model.ServiceAccount
type ReadShallowServiceAccounts ¶ added in v0.2.4
type ReadShallowServiceAccounts struct {
ServiceAccounts `graphql:"serviceAccounts(after: $serviceAccountsEndCursor)"`
}
type RemoteNetworkEdge ¶
type RemoteNetworkEdge struct {
Node gqlRemoteNetwork
}
type RemoteNetworkEntityResponse ¶
type RemoteNetworkEntityResponse struct { Entity *gqlRemoteNetwork OkError }
type RemoteNetworks ¶
type RemoteNetworks struct { PaginatedResource[*RemoteNetworkEdge] }
func (RemoteNetworks) ToModel ¶
func (r RemoteNetworks) ToModel() []*model.RemoteNetwork
type ResourceEdge ¶
type ResourceEdge struct {
Node *ResourceNode
}
type ResourceEntityResponse ¶
type ResourceEntityResponse struct { Entity *gqlResource OkError }
type ResourceNode ¶
type ResourceNode struct { IDName Address struct { Value string } RemoteNetwork struct { ID graphql.ID } Protocols *Protocols IsActive bool IsVisible bool IsBrowserShortcutEnabled bool }
func (ResourceNode) ToModel ¶
func (r ResourceNode) ToModel() *model.Resource
type Resources ¶
type Resources struct { PaginatedResource[*ResourceEdge] }
type RevokeServiceAccountKey ¶
type RevokeServiceAccountKey struct {
OkError `graphql:"serviceAccountKeyRevoke(id: $id)"`
}
type SecurityPolicies ¶ added in v0.2.4
type SecurityPolicies struct { PaginatedResource[*SecurityPolicyEdge] }
type SecurityPolicyEdge ¶ added in v0.2.4
type SecurityPolicyEdge struct {
Node *gqlSecurityPolicy
}
type ServiceAccountEdge ¶
type ServiceAccountEdge struct {
Node *gqlServiceAccount
}
type ServiceAccountEntityResponse ¶
type ServiceAccountEntityResponse struct { Entity *gqlServiceAccount OkError }
type ServiceAccountFilterInput ¶ added in v0.2.4
type ServiceAccountFilterInput struct {
Name StringFilter `json:"name"`
}
func NewServiceAccountFilterInput ¶ added in v0.2.4
func NewServiceAccountFilterInput(name string) *ServiceAccountFilterInput
type ServiceAccountKeyEntityCreateResponse ¶
type ServiceAccountKeyEntityCreateResponse struct { ServiceAccountKeyEntityResponse Token string }
type ServiceAccountKeyEntityResponse ¶
type ServiceAccountKeyEntityResponse struct { Entity *gqlServiceKey OkError }
type ServiceAccounts ¶
type ServiceAccounts struct { PaginatedResource[*ServiceAccountEdge] }
func (ServiceAccounts) ToModel ¶
func (s ServiceAccounts) ToModel() []*model.ServiceAccount
type ServiceEdge ¶ added in v0.2.4
type ServiceEdge struct {
Node *GqlService
}
type Services ¶ added in v0.2.4
type Services struct { PaginatedResource[*ServiceEdge] }
func (*Services) ToModel ¶ added in v0.2.4
func (s *Services) ToModel() []*model.ServiceAccount
type StringFilter ¶ added in v0.2.4
type StringFilter struct {
Eq string `json:"eq"`
}
type StringFilterOperationInput ¶ added in v0.3.0
type StringFilterOperationInput struct {
Eq string `json:"eq"`
}
type UpdateConnector ¶
type UpdateConnector struct {
ConnectorEntityResponse `graphql:"connectorUpdate(id: $connectorId, name: $connectorName)"`
}
type UpdateGroup ¶
type UpdateGroup struct {
GroupEntityResponse `graphql:"groupUpdate(id: $id, name: $name)"`
}
type UpdateRemoteNetwork ¶
type UpdateRemoteNetwork struct {
RemoteNetworkEntityResponse `graphql:"remoteNetworkUpdate(id: $id, name: $name, location: $location)"`
}
func (UpdateRemoteNetwork) ToModel ¶
func (q UpdateRemoteNetwork) ToModel() *model.RemoteNetwork
type UpdateResource ¶
type UpdateResource struct {
ResourceEntityResponse `` /* 225-byte string literal not displayed */
}
type UpdateResourceActiveState ¶
type UpdateResourceActiveState struct {
OkError `graphql:"resourceUpdate(id: $id, isActive: $isActive)"`
}
type UpdateResourceRemoveGroups ¶ added in v0.3.0
type UpdateResourceRemoveGroups struct {
ResourceEntityResponse `graphql:"resourceUpdate(id: $id, removedGroupIds: $removedGroupIds)"`
}
type UpdateServiceAccount ¶
type UpdateServiceAccount struct {
ServiceAccountEntityResponse `graphql:"serviceAccountUpdate(id: $id, name: $name, addedResourceIds: $addedResourceIds)"`
}
func (UpdateServiceAccount) ToModel ¶
func (q UpdateServiceAccount) ToModel() *model.ServiceAccount
type UpdateServiceAccountKey ¶
type UpdateServiceAccountKey struct {
ServiceAccountKeyEntityResponse `graphql:"serviceAccountKeyUpdate(id: $id, name: $name)"`
}
func (UpdateServiceAccountKey) ToModel ¶
func (q UpdateServiceAccountKey) ToModel() (*model.ServiceKey, error)
type UpdateServiceAccountRemoveResources ¶ added in v0.3.0
type UpdateServiceAccountRemoveResources struct {
ServiceAccountEntityResponse `graphql:"serviceAccountUpdate(id: $id, removedResourceIds: $removedResourceIds)"`
}
Source Files
¶
- common.go
- connector-create.go
- connector-delete.go
- connector-read.go
- connector-token-generate.go
- connector-update.go
- connectors-read.go
- group-create.go
- group-delete.go
- group-read.go
- group-update.go
- groups-read.go
- pagination.go
- remote-network-by-id-read.go
- remote-network-by-name-read.go
- remote-network-create.go
- remote-network-delete.go
- remote-network-update.go
- remote-networks-read.go
- resource-create.go
- resource-delete.go
- resource-groups-add.go
- resource-groups-read.go
- resource-read.go
- resource-update.go
- resources-by-name-read.go
- resources-read.go
- security-policies-read.go
- security-policy-read.go
- service-account-create.go
- service-account-delete.go
- service-account-key-create.go
- service-account-key-delete.go
- service-account-key-read.go
- service-account-key-revoke.go
- service-account-key-update.go
- service-account-read.go
- service-account-update.go
- service-accounts-read.go
- service-accounts-shallow-read.go
- user-read.go
- users-read.go
Click to show internal directories.
Click to hide internal directories.