identity

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsIdentity

type AwsIdentity struct {
	CloudAccountLink string            `json:"cloudAccountLink,omitempty"`
	PolicyRefs       []PolicyRef       `json:"policyRefs,omitempty"`
	TrustPolicy      AwsPolicyDocument `json:"trustPolicy,omitempty"`
	RoleName         AwsRoleName       `json:"roleName,omitempty"`
}

type AwsPolicyDocument

type AwsPolicyDocument struct {
	Version   string                       `json:"version,omitempty"`
	Statement []AwsPolicyDocumentStatement `json:"statement,omitempty"`
}

type AwsPolicyDocumentStatement

type AwsPolicyDocumentStatement map[string]any

type AwsRoleName

type AwsRoleName string

type AzureIdentity

type AzureIdentity struct {
	CloudAccountLink string                `json:"cloudAccountLink,omitempty"`
	RoleAssignments  []AzureRoleAssignment `json:"roleAssignments,omitempty"`
}

type AzureRoleAssignment

type AzureRoleAssignment struct {
	Scope string   `json:"scope,omitempty"`
	Roles []string `json:"roles,omitempty"`
}

type GcpIdentity

type GcpIdentity struct {
	CloudAccountLink string                `json:"cloudAccountLink,omitempty"`
	Scopes           []string              `json:"scopes,omitempty"`
	ServiceAccount   string                `json:"serviceAccount,omitempty"`
	Bindings         []GcpIdentityBindings `json:"bindings,omitempty"`
}

type GcpIdentityBindings

type GcpIdentityBindings struct {
	Resource string        `json:"resource,omitempty"`
	Roles    []GcpRoleName `json:"roles,omitempty"`
}

type GcpRoleName

type GcpRoleName string

type Identity

type Identity struct {
	Id                     string                  `json:"id,omitempty"`
	Name                   base.Name               `json:"name,omitempty"`
	Kind                   base.Kind               `json:"kind,omitempty"`
	Version                float32                 `json:"version"`
	Description            string                  `json:"description,omitempty"`
	Tags                   base.Tags               `json:"tags,omitempty"`
	Created                string                  `json:"created,omitempty"`
	LastModified           string                  `json:"lastModified,omitempty"`
	Links                  base.Links              `json:"links,omitempty"`
	Aws                    AwsIdentity             `json:"aws,omitempty"`
	Gcp                    GcpIdentity             `json:"gcp,omitempty"`
	Azure                  AzureIdentity           `json:"azure,omitempty"`
	Ngs                    NgsIdentity             `json:"ngs,omitempty"`
	NetworkResources       []NetworkResource       `json:"networkResources,omitempty"`
	NativeNetworkResources []NativeNetworkResource `json:"nativeNetworkResources,omitempty"`
	MemcacheAccess         []MemcacheAccess        `json:"memcacheAccess,omitempty"`
	SpicedbAccess          []SpicedbAccess         `json:"spicedbAccess,omitempty"`
	Status                 Status                  `json:"status,omitempty"`
	Gvc                    any                     `json:"gvc,omitempty"`
}

type MemcacheAccess

type MemcacheAccess struct {
	ClusterLink string             `json:"clusterLink,omitempty"`
	Role        MemcacheAccessRole `json:"role,omitempty"`
}

type MemcacheAccessRole

type MemcacheAccessRole string
const (
	MemcacheAccessRoleReadWrite MemcacheAccessRole = "readWrite"
)

type NativeNetworkResource

type NativeNetworkResource struct {
	Name              any                                    `json:"name,omitempty"`
	FQDN              string                                 `json:"fQDN,omitempty"`
	Ports             []float32                              `json:"ports,omitempty"`
	AwsPrivateLink    NativeNetworkResourceAwsPrivateLink    `json:"awsPrivateLink,omitempty"`
	GcpServiceConnect NativeNetworkResourceGcpServiceConnect `json:"gcpServiceConnect,omitempty"`
}
type NativeNetworkResourceAwsPrivateLink struct {
	EndpointServiceName string `json:"endpointServiceName,omitempty"`
}

type NativeNetworkResourceGcpServiceConnect

type NativeNetworkResourceGcpServiceConnect struct {
	TargetService string `json:"targetService,omitempty"`
}

type NetworkResource

type NetworkResource struct {
	Name       any       `json:"name,omitempty"`
	AgentLink  string    `json:"agentLink,omitempty"`
	IPs        []string  `json:"iPs,omitempty"`
	FQDN       string    `json:"fQDN,omitempty"`
	ResolverIP string    `json:"resolverIP,omitempty"`
	Ports      []float32 `json:"ports,omitempty"`
}

type NgsIdentity

type NgsIdentity struct {
	CloudAccountLink string          `json:"cloudAccountLink,omitempty"`
	Pub              NgsIdentityPub  `json:"pub,omitempty"`
	Sub              NgsIdentitySub  `json:"sub,omitempty"`
	Resp             NgsIdentityResp `json:"resp,omitempty"`
	Subs             float32         `json:"subs"`
	Data             float32         `json:"data"`
	Payload          float32         `json:"payload"`
}

type NgsIdentityPub

type NgsIdentityPub struct {
	Allow []string `json:"allow,omitempty"`
	Deny  []string `json:"deny,omitempty"`
}

type NgsIdentityResp

type NgsIdentityResp struct {
	Max float32 `json:"max"`
	Ttl string  `json:"ttl,omitempty"`
}

type NgsIdentitySub

type NgsIdentitySub struct {
	Allow []string `json:"allow,omitempty"`
	Deny  []string `json:"deny,omitempty"`
}

type PolicyRef

type PolicyRef string

type SpicedbAccess

type SpicedbAccess struct {
	ClusterLink string            `json:"clusterLink,omitempty"`
	Role        SpicedbAccessRole `json:"role,omitempty"`
}

type SpicedbAccessRole

type SpicedbAccessRole string
const (
	SpicedbAccessRoleCheckPermission SpicedbAccessRole = "checkPermission"
	SpicedbAccessRoleRead            SpicedbAccessRole = "read"
	SpicedbAccessRoleWrite           SpicedbAccessRole = "write"
)

type Status

type Status struct {
	ObjectName string      `json:"objectName,omitempty"`
	Aws        StatusAws   `json:"aws,omitempty"`
	Gcp        StatusGcp   `json:"gcp,omitempty"`
	Azure      StatusAzure `json:"azure,omitempty"`
}

type StatusAws

type StatusAws struct {
	LastError string `json:"lastError,omitempty"`
	Usable    bool   `json:"usable,omitempty"`
}

type StatusAzure

type StatusAzure struct {
	LastError string `json:"lastError,omitempty"`
	Usable    bool   `json:"usable,omitempty"`
}

type StatusGcp

type StatusGcp struct {
	LastError string `json:"lastError,omitempty"`
	Usable    bool   `json:"usable,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL