Documentation
¶
Index ¶
- Constants
- Variables
- func GetVolumeKmsKey[T Resource](b *InMemoryBackend, id string) (KmsKeyOut, *APIError)
- func UpdateVolumeKmsKey[T Resource](b *InMemoryBackend, id, ifMatch, keyID string) (KmsKeyOut, *APIError)
- type APIError
- type AddDrgRulesIn
- type AddDrgStatementsIn
- type AddVcnIpv6In
- type AttachBootVolumeIn
- type AttachLoadBalancerIn
- type AttachVnicIn
- type AttachVolumeIn
- type AttachmentInfo
- type AutotunePolicy
- type BackendChange
- type BackendEndpoint
- type BackupPolicyAssignment
- type BackupSchedule
- type Base
- type BlockVolumeReplica
- type BlockVolumeReplicaInfo
- type BootVolume
- type BootVolumeAttachment
- type BootVolumeBackup
- type BootVolumeReplica
- type BootVolumeReplicaInfo
- type BwOpts
- type Byoasn
- type ByoasnByoipRange
- type ByoipRange
- type ByoipV6Alloc
- type CapacityReservation
- type CaptureConsoleHistoryIn
- type CaptureFilter
- type CaptureRule
- type CidrUtilizationItem
- type CidrUtilizationOut
- type ComputeCluster
- type ConfigProvider
- type ConsoleHistory
- type CopyBackupIn
- type CreateAssignmentIn
- type CreateBootVolumeBackupIn
- type CreateBootVolumeIn
- type CreateByoasnIn
- type CreateByoipRangeIn
- type CreateCaptureFilterIn
- type CreateComputeClusterIn
- type CreateConsoleConnectionIn
- type CreateDhcpOptionsIn
- type CreateDrgAttachmentIn
- type CreateDrgIn
- type CreateDrgNatPolicyIn
- type CreateDrgRouteDistributionIn
- type CreateDrgRouteTableIn
- type CreateDvhIn
- type CreateImageIn
- type CreateInstanceConfigurationIn
- type CreateInstancePoolIn
- type CreateInternetGatewayIn
- type CreateIpv6In
- type CreateLpgIn
- type CreateNatGatewayIn
- type CreateNsgIn
- type CreatePrivateIPIn
- type CreatePublicIPIn
- type CreatePublicIPPoolIn
- type CreateReservationIn
- type CreateRouteTableIn
- type CreateSecurityListIn
- type CreateServiceGatewayIn
- type CreateSubnetIn
- type CreateVcnIn
- type CreateVlanIn
- type CreateVnicIn
- type CreateVolumeBackupIn
- type CreateVolumeBackupPolicyIn
- type CreateVolumeGroupBackupIn
- type CreateVolumeGroupIn
- type CreateVolumeIn
- type CreateVtapIn
- type DedicatedVMHost
- type DefaultDrgRouteTables
- type DetachLoadBalancerIn
- type DhcpOption
- type DhcpOptions
- type Drg
- type DrgAttachment
- type DrgMatchCriteria
- type DrgNatPolicy
- type DrgNatRule
- type DrgNatRuleIn
- type DrgNetworkDetails
- type DrgNetworkIn
- type DrgRedundancy
- type DrgRouteDistribution
- type DrgRouteTable
- type DrgRuleIn
- type DrgRuleWire
- type DrgStatement
- type DrgStatementIn
- type DrgStaticRule
- type DrgUpgradeStatus
- type DvhInstance
- type EgressRule
- type Endpoint
- type Flow
- type Handler
- func (h *Handler) ExtractOperation(c *echo.Context) string
- func (h *Handler) ExtractResource(c *echo.Context) string
- func (h *Handler) GetSupportedOperations() []string
- func (h *Handler) Handler() echo.HandlerFunc
- func (h *Handler) MatchPriority() int
- func (h *Handler) Name() string
- func (h *Handler) Reset()
- func (h *Handler) Restore(ctx context.Context, data []byte) error
- func (h *Handler) RouteMatcher() service.Matcher
- func (h *Handler) Shutdown(ctx context.Context)
- func (h *Handler) Snapshot(ctx context.Context) []byte
- func (h *Handler) StartWorker(ctx context.Context) error
- func (h *Handler) Trusted() echo.HandlerFunc
- type IPInventoryRequest
- type IcmpOptions
- type Image
- type ImageListOpts
- type ImageRef
- type InMemoryBackend
- func (b *InMemoryBackend) AddDrgNatRules(id, ifMatch string, rules []DrgNatRuleIn) (string, *APIError)
- func (b *InMemoryBackend) AddDrgRouteDistributionStatements(id string, in AddDrgStatementsIn) ([]DrgStatement, *APIError)
- func (b *InMemoryBackend) AddDrgRouteRules(id string, in AddDrgRulesIn) ([]DrgRuleWire, *APIError)
- func (b *InMemoryBackend) AddIpv4SubnetCidr(id, ifMatch, cidr string) (string, *APIError)
- func (b *InMemoryBackend) AddIpv6SubnetCidr(id, ifMatch, cidr string) (string, string, *APIError)
- func (b *InMemoryBackend) AddIpv6VcnCidr(id, ifMatch string, in AddVcnIpv6In) (string, *APIError)
- func (b *InMemoryBackend) AddPublicIPPoolCapacity(id, ifMatch string, in PoolCapacityIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) AddSecurityRules(id string, in SecurityRulesIn) (SecurityRulesOut, *APIError)
- func (b *InMemoryBackend) AddVcnCidr(id, ifMatch, cidr string) (string, *APIError)
- func (b *InMemoryBackend) AdvertiseByoipRange(id, ifMatch string) *APIError
- func (b *InMemoryBackend) AttachBootVolume(in AttachBootVolumeIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) AttachDrgNetwork(in DrgNetworkIn) (string, error)
- func (b *InMemoryBackend) AttachLoadBalancer(poolID, ifMatch string, in AttachLoadBalancerIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) AttachPoolInstance(poolID, instID string) (PoolInstance, *APIError)
- func (b *InMemoryBackend) AttachService(id, ifMatch string, in ServiceIDIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) AttachVnic(in AttachVnicIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) AttachVolume(in AttachVolumeIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) BulkCreateIpv6s(token string, in bulkIpv6CreateIn) (string, *APIError)
- func (b *InMemoryBackend) BulkCreatePrivateIPs(token string, in bulkCreateIn) (string, *APIError)
- func (b *InMemoryBackend) BulkDeleteIpv6s(token string, in bulkIpv6DeleteIn) (string, *APIError)
- func (b *InMemoryBackend) BulkDeletePrivateIPs(token string, in bulkIDsIn) (string, *APIError)
- func (b *InMemoryBackend) BulkDetachIpv6s(token string, in bulkIpv6DetachIn) (string, *APIError)
- func (b *InMemoryBackend) BulkDetachPrivateIPs(token string, in bulkDetachIn) (string, *APIError)
- func (b *InMemoryBackend) BulkUpdateIpv6s(token string, in bulkIpv6UpdateIn) (string, *APIError)
- func (b *InMemoryBackend) BulkUpdatePrivateIPs(token string, in bulkUpdateIn) (string, *APIError)
- func (b *InMemoryBackend) CanReach(src, dst Endpoint, f Flow) (Verdict, error)
- func (b *InMemoryBackend) CaptureConsoleHistory(in CaptureConsoleHistoryIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) ChangeDrgCompartment(id, compartment, ifMatch string) *APIError
- func (b *InMemoryBackend) ClassifyPeer(srcIP, dstVnicID string, f Flow) PeerClass
- func (b *InMemoryBackend) Close()
- func (b *InMemoryBackend) Compartments() []string
- func (b *InMemoryBackend) ConnectLocalPeeringGateways(id, peerID, ifMatch string) *APIError
- func (b *InMemoryBackend) CopyBootVolumeBackup(id string, in CopyBackupIn) (Resource, string, string, *APIError)
- func (b *InMemoryBackend) CopyVolumeBackup(id string, in CopyBackupIn) (Resource, string, string, *APIError)
- func (b *InMemoryBackend) CopyVolumeGroupBackup(id string, in CopyBackupIn) (Resource, string, string, *APIError)
- func (b *InMemoryBackend) CreateBootVolume(in CreateBootVolumeIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateBootVolumeBackup(in CreateBootVolumeBackupIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateByoasn(in CreateByoasnIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateByoipRange(in CreateByoipRangeIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateCaptureFilter(in CreateCaptureFilterIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateComputeCapacityReservation(in CreateReservationIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateComputeCluster(in CreateComputeClusterIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateDedicatedVMHost(in CreateDvhIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateDhcpOptions(in CreateDhcpOptionsIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateDrg(in CreateDrgIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateDrgAttachment(in CreateDrgAttachmentIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateDrgNatPolicy(in CreateDrgNatPolicyIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateDrgRouteDistribution(in CreateDrgRouteDistributionIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateDrgRouteTable(in CreateDrgRouteTableIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateImage(in CreateImageIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateInstanceConfiguration(in CreateInstanceConfigurationIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateInstanceConsoleConnection(in CreateConsoleConnectionIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateInstancePool(in CreateInstancePoolIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateInternetGateway(in CreateInternetGatewayIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateIpv6(in CreateIpv6In) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateLocalPeeringGateway(in CreateLpgIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateNatGateway(in CreateNatGatewayIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateNetworkSecurityGroup(in CreateNsgIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreatePrivateIP(in CreatePrivateIPIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreatePublicIP(in CreatePublicIPIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreatePublicIPPool(in CreatePublicIPPoolIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateRouteTable(in CreateRouteTableIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateSecurityList(in CreateSecurityListIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateServiceGateway(in CreateServiceGatewayIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateServiceNic(in ServiceNicIn) (ServiceNic, error)
- func (b *InMemoryBackend) CreateSubnet(in CreateSubnetIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateVcn(in CreateVcnIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateVlan(in CreateVlanIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateVolume(in CreateVolumeIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateVolumeBackup(in CreateVolumeBackupIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateVolumeBackupPolicy(in CreateVolumeBackupPolicyIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateVolumeBackupPolicyAssignment(in CreateAssignmentIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateVolumeGroup(in CreateVolumeGroupIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateVolumeGroupBackup(in CreateVolumeGroupBackupIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) CreateVtap(in CreateVtapIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) DeleteByoasn(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DeleteByoipRange(id, ifMatch string) (string, *APIError)
- func (b *InMemoryBackend) DeleteComputeCapacityReservation(id, ifMatch string) (string, *APIError)
- func (b *InMemoryBackend) DeleteComputeCluster(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DeleteConsoleHistory(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DeleteDedicatedVMHost(id, ifMatch string) (string, *APIError)
- func (b *InMemoryBackend) DeleteDrgAttachment(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DeleteDrgNatPolicy(id, ifMatch string) (string, *APIError)
- func (b *InMemoryBackend) DeleteImage(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DeleteInstanceConfiguration(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DeleteInstanceConsoleConnection(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DeletePrivateIP(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DeletePublicIPPool(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DeleteServiceNic(vnicID string)
- func (b *InMemoryBackend) DeleteVolumeBackupPolicy(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DeleteVolumeBackupPolicyAssignment(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DetachBootVolume(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DetachDrgNetwork(attachmentID string)
- func (b *InMemoryBackend) DetachLoadBalancer(poolID, ifMatch string, in DetachLoadBalancerIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) DetachPoolInstance(poolID, instID string, decrement, terminate bool) (string, *APIError)
- func (b *InMemoryBackend) DetachService(id, ifMatch string, in ServiceIDIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) DetachVnic(id, ifMatch string) *APIError
- func (b *InMemoryBackend) DetachVolume(id, ifMatch string) *APIError
- func (b *InMemoryBackend) Fqdn(privateIPID string) string
- func (b *InMemoryBackend) GetAllDrgAttachments(id, attType, token string, limit int, crossTenancy *bool) (page.Page[AttachmentInfo], *APIError)
- func (b *InMemoryBackend) GetDrgRedundancyStatus(id string) (DrgRedundancy, *APIError)
- func (b *InMemoryBackend) GetImage(id string) (Resource, string, *APIError)
- func (b *InMemoryBackend) GetNetworkingTopology(compartment string) (TopologyOut, *APIError)
- func (b *InMemoryBackend) GetPoolLoadBalancer(poolID, id string) (PoolLoadBalancer, *APIError)
- func (b *InMemoryBackend) GetResourceIPInventory(dataRequestID string) (InventoryOut, *APIError)
- func (b *InMemoryBackend) GetService(id string) (Service, *APIError)
- func (b *InMemoryBackend) GetSubnetCidrUtilization(id string) (CidrUtilizationOut, *APIError)
- func (b *InMemoryBackend) GetSubnetIPInventory(id string) (SubnetInventoryOut, *APIError)
- func (b *InMemoryBackend) GetSubnetTopology(compartment, subnetID string) (TopologyOut, *APIError)
- func (b *InMemoryBackend) GetUpgradeStatus(id string) (DrgUpgradeStatus, *APIError)
- func (b *InMemoryBackend) GetVcnDNSResolverAssociation(id string) (VcnDNSResolverAssociation, *APIError)
- func (b *InMemoryBackend) GetVcnOverlap(id string, d OverlapDetails) (OverlapOut, string, *APIError)
- func (b *InMemoryBackend) GetVcnTopology(compartment, vcnID string) (TopologyOut, *APIError)
- func (b *InMemoryBackend) GetVolumeBackupPolicy(id string) (Resource, string, *APIError)
- func (b *InMemoryBackend) GetWindowsInstanceInitialCredentials(id string) (InstanceCredentials, *APIError)
- func (b *InMemoryBackend) GetWorkRequest(id string) (WorkRequestWire, *APIError)
- func (b *InMemoryBackend) InstanceAction(id, action, ifMatch string) (Resource, string, *APIError)
- func (b *InMemoryBackend) InstanceState(id string) (string, bool)
- func (b *InMemoryBackend) Ipv6VnicDetach(id, ifMatch string) (Resource, string, *APIError)
- func (b *InMemoryBackend) LaunchInstance(in LaunchInstanceIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) LaunchInstanceConfiguration(id string, override map[string]any, token string) (Resource, string, *APIError)
- func (b *InMemoryBackend) LaunchWorker(sp WorkerSpec) (WorkerRef, error)
- func (b *InMemoryBackend) ListDrgRouteDistributionStatements(id, order, token string, limit int) (page.Page[DrgStatement], *APIError)
- func (b *InMemoryBackend) ListDrgRouteRules(id, routeType, token string, limit int) (page.Page[DrgRuleWire], *APIError)
- func (b *InMemoryBackend) ListIPInventory(d InventoryDetails) (InventoryOut, string, *APIError)
- func (b *InMemoryBackend) ListImages(o ImageListOpts) (page.Page[Resource], *APIError)
- func (b *InMemoryBackend) ListIpv6s(o Ipv6ListOpts) (page.Page[Resource], *APIError)
- func (b *InMemoryBackend) ListNsgVnics(id string, o ListOpts) (page.Page[NsgVnic], *APIError)
- func (b *InMemoryBackend) ListPolicyAssignments(assetID, pageToken string, limit int) (page.Page[Resource], *APIError)
- func (b *InMemoryBackend) ListPrivateIPs(o PrivateIPListOpts) (page.Page[Resource], *APIError)
- func (b *InMemoryBackend) ListSecurityRules(id string, o RuleListOpts) (page.Page[SecurityRule], *APIError)
- func (b *InMemoryBackend) ListServices(pageToken string, limit int) (page.Page[Service], *APIError)
- func (b *InMemoryBackend) ListShapes(compartment, imageID, name, pageToken string, limit int) (page.Page[Shape], *APIError)
- func (b *InMemoryBackend) ListVcns() []VcnRef
- func (b *InMemoryBackend) ListVolumeBackupPolicies(compartment, pageToken string, limit int) (page.Page[Resource], *APIError)
- func (b *InMemoryBackend) ListWorkRequestErrors(id string) ([]WorkRequestError, *APIError)
- func (b *InMemoryBackend) ListWorkRequestLogs(id, order, token string, limit int) (page.Page[WorkRequestEntry], *APIError)
- func (b *InMemoryBackend) ListWorkRequests(compartment, resourceID, token string, limit int) (page.Page[WorkRequestSummaryWire], *APIError)
- func (b *InMemoryBackend) LookupImage(id string) (ImageRef, bool)
- func (b *InMemoryBackend) LookupNSG(id string) (string, bool)
- func (b *InMemoryBackend) LookupSubnet(id string) (SubnetRef, bool)
- func (b *InMemoryBackend) ModifyIpv4SubnetCidr(id, ifMatch, original, updated string) (string, *APIError)
- func (b *InMemoryBackend) ModifyVcnCidr(id, ifMatch, original, updated string) (string, *APIError)
- func (b *InMemoryBackend) PublicIPByAddress(addr string) (Resource, string, *APIError)
- func (b *InMemoryBackend) RemoveDrgNatPolicy(id, ifMatch string) (Resource, string, *APIError)
- func (b *InMemoryBackend) RemoveDrgNatRules(id, ifMatch string, ids []string) (string, *APIError)
- func (b *InMemoryBackend) RemoveDrgRouteDistributionStatements(id string, ids []string) *APIError
- func (b *InMemoryBackend) RemoveDrgRouteRules(id string, ids []string) *APIError
- func (b *InMemoryBackend) RemoveExportDrgRouteDistribution(id, ifMatch string) (Resource, string, *APIError)
- func (b *InMemoryBackend) RemoveImportDrgRouteDistribution(id, ifMatch string) (Resource, string, *APIError)
- func (b *InMemoryBackend) RemoveIpv4SubnetCidr(id, ifMatch, cidr string) (string, *APIError)
- func (b *InMemoryBackend) RemoveIpv6SubnetCidr(id, ifMatch, cidr string) (string, string, *APIError)
- func (b *InMemoryBackend) RemoveIpv6VcnCidr(id, ifMatch, cidr string) (string, *APIError)
- func (b *InMemoryBackend) RemovePublicIPPoolCapacity(id, ifMatch, cidr string) (Resource, string, *APIError)
- func (b *InMemoryBackend) RemoveSecurityRules(id string, ids []string) *APIError
- func (b *InMemoryBackend) RemoveVcnCidr(id, ifMatch, cidr string) (string, *APIError)
- func (b *InMemoryBackend) Reset()
- func (b *InMemoryBackend) Restore(ctx context.Context, data []byte) error
- func (b *InMemoryBackend) SetClock(now func() time.Time)
- func (b *InMemoryBackend) SetCompartmentChecker(fn func(string) bool)
- func (b *InMemoryBackend) SetDNSResolverLookup(fn func(vcnID string) (string, bool))
- func (b *InMemoryBackend) SetKeyChecker(fn func(id string) (string, bool))
- func (b *InMemoryBackend) SetLoadBalancerClient(c LoadBalancerClient)
- func (b *InMemoryBackend) SetOriginAsn(id, ifMatch string, in SetOriginAsnIn) (string, *APIError)
- func (b *InMemoryBackend) SetOriginAsnToOracle(id, ifMatch string) *APIError
- func (b *InMemoryBackend) SetServiceNicNsgs(vnicID string, nsgIDs []string) error
- func (b *InMemoryBackend) SetTagLookup(fn ocitags.Lookup)
- func (b *InMemoryBackend) Snapshot(ctx context.Context) []byte
- func (b *InMemoryBackend) Sweep()
- func (b *InMemoryBackend) SyncLoadBalancers(ctx context.Context) error
- func (b *InMemoryBackend) TerminateInstance(id, ifMatch string, preserveBoot bool) *APIError
- func (b *InMemoryBackend) TerminateInstancePool(id, ifMatch string) *APIError
- func (b *InMemoryBackend) TerminateInstanceWith(id, ifMatch string, o TerminateOpts) *APIError
- func (b *InMemoryBackend) TerminateWorker(id string) error
- func (b *InMemoryBackend) UpdateBootVolume(id, ifMatch string, in UpdateVolumeIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateBootVolumeBackup(id, ifMatch string, in UpdateBootVolumeBackupIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateByoasn(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateByoipRange(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateCaptureFilter(id, ifMatch string, in UpdateCaptureFilterIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateComputeCapacityReservation(id, ifMatch string, in UpdateReservationIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateComputeCluster(id, ifMatch string, in UpdateComputeClusterIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateConsoleHistory(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateDedicatedVMHost(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateDhcpOptions(id, ifMatch string, in UpdateDhcpOptionsIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateDrg(id, ifMatch string, in UpdateDrgIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateDrgAttachment(id, ifMatch string, in UpdateDrgAttachmentIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateDrgNatPolicy(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateDrgNatRules(id, ifMatch string, rules []DrgNatRuleIn) (string, *APIError)
- func (b *InMemoryBackend) UpdateDrgRouteDistribution(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateDrgRouteDistributionStatements(id string, in UpdateDrgStatementsIn) ([]DrgStatement, *APIError)
- func (b *InMemoryBackend) UpdateDrgRouteRules(id string, in UpdateDrgRulesIn) ([]DrgRuleWire, *APIError)
- func (b *InMemoryBackend) UpdateDrgRouteTable(id, ifMatch string, in UpdateDrgRouteTableIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateImage(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateInstance(id, ifMatch string, in UpdateInstanceIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateInstanceConfiguration(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateInstanceConsoleConnection(id, ifMatch string, in UpdateConsoleIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateInstancePool(id, ifMatch string, in UpdateInstancePoolIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateInternetGateway(id, ifMatch string, in UpdateInternetGatewayIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateIpv6(id, ifMatch string, in UpdateIpv6In) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateLocalPeeringGateway(id, ifMatch string, in UpdateLpgIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateNatGateway(id, ifMatch string, in UpdateNatGatewayIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateNetworkSecurityGroup(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdatePrivateIP(id, ifMatch string, in UpdatePrivateIPIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdatePublicIP(id, ifMatch string, in UpdatePublicIPIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdatePublicIPPool(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateRouteTable(id, ifMatch string, in UpdateRouteTableIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateSecurityList(id, ifMatch string, in UpdateSecurityListIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateSecurityRules(id string, in SecurityRulesIn) (SecurityRulesOut, *APIError)
- func (b *InMemoryBackend) UpdateServiceGateway(id, ifMatch string, in UpdateServiceGatewayIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateSubnet(id, ifMatch string, in UpdateSubnetIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateVcn(id, ifMatch string, in UpdateVcnIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateVlan(id, ifMatch string, in UpdateVlanIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateVnic(id, ifMatch string, in UpdateVnicIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateVolume(id, ifMatch string, in UpdateVolumeIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateVolumeAttachment(id, ifMatch string, in UpdateVolumeAttachmentIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateVolumeBackup(id, ifMatch string, in UpdateVolumeBackupIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateVolumeBackupPolicy(id, ifMatch string, in UpdateVolumeBackupPolicyIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateVolumeGroup(id, ifMatch string, in UpdateVolumeGroupIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateVolumeGroupBackup(id, ifMatch string, in UpdateVolumeGroupBackupIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpdateVtap(id, ifMatch string, in UpdateVtapIn) (Resource, string, *APIError)
- func (b *InMemoryBackend) UpgradeDrg(id string) (string, *APIError)
- func (b *InMemoryBackend) ValidateByoasn(id, ifMatch string) (string, *APIError)
- func (b *InMemoryBackend) ValidateByoipRange(id, ifMatch string) (string, *APIError)
- func (b *InMemoryBackend) VcnExists(id string) bool
- func (b *InMemoryBackend) WithdrawByoipRange(id, ifMatch string) *APIError
- type IngressRule
- type Instance
- type InstanceConfiguration
- type InstanceConsoleConnection
- type InstanceCredentials
- type InstancePool
- type InstanceShapeConfig
- type Internal
- type InternetGateway
- type InventoryDetails
- type InventoryOut
- type Ipv6
- type Ipv6ListOpts
- type Ipv6Pair
- type KmsKeyOut
- type LaunchCreateVolumeIn
- type LaunchInstanceIn
- type LaunchVolumeIn
- type ListOpts
- type LoadBalancerClient
- type LocalPeeringGateway
- type MemOpts
- type MemberReplica
- type MinMax
- type NSGRule
- type NatGateway
- type NetworkSecurityGroup
- type NsgVnic
- type OriginAsn
- type OverlapDetails
- type OverlapItem
- type OverlapOut
- type PeerClass
- type PlacementIn
- type PlatformConfig
- type PoolCapacity
- type PoolCapacityIn
- type PoolCapacityOut
- type PoolInstance
- type PoolLoadBalancer
- type PoolPlacement
- type PortOptions
- type PortRange
- type PreemptibleIn
- type PrivateIP
- type PrivateIPListOpts
- type Provider
- type PublicIP
- type PublicIPPool
- type ReplicaDetailsIn
- type ReservationConfig
- type ReservationInstance
- type ReservationShapeConfig
- type Resource
- type Retention
- type RetentionDuration
- type RetentionIn
- type RouteRule
- type RouteTable
- type RuleListOpts
- type SecurityList
- type SecurityRule
- type SecurityRuleIn
- type SecurityRulesIn
- type SecurityRulesOut
- type Service
- type ServiceGateway
- type ServiceIDIn
- type ServiceNic
- type ServiceNicIn
- type ServiceRef
- type SetOriginAsnIn
- type Settings
- type Shape
- type ShapeConfigIn
- type ShapeRef
- type SourceDetails
- type Subnet
- type SubnetIPOut
- type SubnetInventoryOut
- type SubnetRef
- type TagsIn
- type TerminateOpts
- type TopologyOut
- type UpdateBootVolumeBackupIn
- type UpdateCaptureFilterIn
- type UpdateComputeClusterIn
- type UpdateConsoleIn
- type UpdateDhcpOptionsIn
- type UpdateDrgAttachmentIn
- type UpdateDrgIn
- type UpdateDrgRouteTableIn
- type UpdateDrgRuleIn
- type UpdateDrgRulesIn
- type UpdateDrgStatementIn
- type UpdateDrgStatementsIn
- type UpdateIn
- type UpdateInstanceIn
- type UpdateInstancePoolIn
- type UpdateInternetGatewayIn
- type UpdateIpv6In
- type UpdateLpgIn
- type UpdateNatGatewayIn
- type UpdatePrivateIPIn
- type UpdatePublicIPIn
- type UpdateReservationIn
- type UpdateRouteTableIn
- type UpdateSecurityListIn
- type UpdateServiceGatewayIn
- type UpdateSourceIn
- type UpdateSubnetIn
- type UpdateVcnIn
- type UpdateVlanIn
- type UpdateVnicIn
- type UpdateVolumeAttachmentIn
- type UpdateVolumeBackupIn
- type UpdateVolumeBackupPolicyIn
- type UpdateVolumeGroupBackupIn
- type UpdateVolumeGroupIn
- type UpdateVolumeIn
- type UpdateVtapIn
- type Vcn
- type VcnDNSResolverAssociation
- type VcnRef
- type Verdict
- type Vlan
- type Vnic
- type VnicAttachment
- type Volume
- type VolumeAttachment
- type VolumeBackup
- type VolumeBackupPolicy
- type VolumeGroup
- type VolumeGroupBackup
- type VolumeGroupReplica
- type VolumeGroupReplicaInfo
- type VolumeGroupSource
- type VolumeSource
- type Vtap
- type WorkRequest
- type WorkRequestEntry
- type WorkRequestError
- type WorkRequestSummaryWire
- type WorkRequestWire
- type WorkResource
- type WorkerRef
- type WorkerSpec
- type WorkerVnic
Constants ¶
const DefaultPort = 8155
DefaultPort is the dedicated listener's default TCP port.
const (
// RegionKey is the three letter key of the emulated region.
RegionKey = "iad"
)
Variables ¶
var ErrEndpoint = errors.New("ocicore: endpoint does not name a VNIC")
ErrEndpoint is returned by CanReach when an endpoint does not name a live VNIC.
var ErrNilAppContext = errors.New("ocicore: nil app context")
ErrNilAppContext is returned when Init is called with a nil AppContext.
var ErrSnapshotNull = errors.New("ocicore: null entry in snapshot")
ErrSnapshotNull is returned when a snapshot contains a null entry.
var ErrTargetGone = errors.New("load balancer or backend set not found")
ErrTargetGone is returned by a LoadBalancerClient when the load balancer or its backend set no longer exists.
Functions ¶
func GetVolumeKmsKey ¶
func GetVolumeKmsKey[T Resource](b *InMemoryBackend, id string) (KmsKeyOut, *APIError)
GetVolumeKmsKey returns the Vault key of a volume.
func UpdateVolumeKmsKey ¶
func UpdateVolumeKmsKey[T Resource](b *InMemoryBackend, id, ifMatch, keyID string) (KmsKeyOut, *APIError)
UpdateVolumeKmsKey assigns a Vault key to a volume or boot volume.
Types ¶
type APIError ¶
APIError is an OCI error response: HTTP status plus the `code` and `message` body fields.
func DeleteVolumeKmsKey ¶
func DeleteVolumeKmsKey[T Resource](b *InMemoryBackend, id, ifMatch string) *APIError
DeleteVolumeKmsKey returns a volume or boot volume to Oracle-managed keys.
type AddDrgRulesIn ¶
type AddDrgRulesIn struct {
RouteRules []DrgRuleIn `json:"routeRules"`
}
AddDrgRulesIn is the AddDrgRouteRules request body.
type AddDrgStatementsIn ¶
type AddDrgStatementsIn struct {
Statements []DrgStatementIn `json:"statements"`
}
AddDrgStatementsIn is the AddDrgRouteDistributionStatements request body.
type AddVcnIpv6In ¶
type AddVcnIpv6In struct {
IsOracleGuaAllocationEnabled *bool `json:"isOracleGuaAllocationEnabled"`
Byoipv6CidrDetail *struct {
Byoipv6RangeID string `json:"byoipv6RangeId"`
Ipv6CidrBlock string `json:"ipv6CidrBlock"`
} `json:"byoipv6CidrDetail"`
Ipv6PrivateCidrBlock string `json:"ipv6PrivateCidrBlock"`
}
AddVcnIpv6In is the AddIpv6VcnCidr request body.
type AttachBootVolumeIn ¶
type AttachBootVolumeIn struct {
BootVolumeID string `json:"bootVolumeId"`
InstanceID string `json:"instanceId"`
DisplayName string `json:"displayName"`
}
AttachBootVolumeIn is the AttachBootVolume request body.
type AttachLoadBalancerIn ¶
type AttachLoadBalancerIn struct {
Port *int `json:"port"`
LoadBalancerID string `json:"loadBalancerId"`
BackendSetName string `json:"backendSetName"`
VnicSelection string `json:"vnicSelection"`
}
AttachLoadBalancerIn is AttachLoadBalancerDetails; it is also an element of CreateInstancePoolDetails.loadBalancers.
type AttachVnicIn ¶
type AttachVnicIn struct {
CreateVnicDetails *CreateVnicIn `json:"createVnicDetails"`
NicIndex *int `json:"nicIndex"`
DisplayName string `json:"displayName"`
InstanceID string `json:"instanceId"`
}
AttachVnicIn is the AttachVnic request body.
type AttachVolumeIn ¶
type AttachVolumeIn struct {
IsReadOnly *bool `json:"isReadOnly"`
UseChap *bool `json:"useChap"`
IsPvEncryptionInTransit *bool `json:"isPvEncryptionInTransitEnabled"`
IsAgentAutoIscsiLoginEnabled *bool `json:"isAgentAutoIscsiLoginEnabled"`
Type string `json:"type"`
InstanceID string `json:"instanceId"`
VolumeID string `json:"volumeId"`
Device string `json:"device"`
DisplayName string `json:"displayName"`
}
AttachVolumeIn is the AttachVolume request body (type iscsi or paravirtualized).
type AttachmentInfo ¶
type AttachmentInfo struct {
ID string `json:"id"`
}
AttachmentInfo is one entry of GetAllDrgAttachments.
type AutotunePolicy ¶
type AutotunePolicy struct {
MaxVpusPerGB *int64 `json:"maxVpusPerGB,omitempty"`
AutotuneType string `json:"autotuneType"`
}
AutotunePolicy is one entry of autotunePolicies (autotuneType discriminates; maxVpusPerGB is PERFORMANCE_BASED only).
type BackendChange ¶
type BackendChange struct {
Set string
Add []BackendEndpoint
Remove []BackendEndpoint
}
BackendChange adds and removes backends of one backend set.
type BackendEndpoint ¶
BackendEndpoint is the address of one backend.
type BackupPolicyAssignment ¶
type BackupPolicyAssignment struct {
Base
AssetID string `json:"assetId"`
PolicyID string `json:"policyId"`
}
BackupPolicyAssignment assigns a policy to a volume or boot volume.
type BackupSchedule ¶
type BackupSchedule struct {
BackupType string `json:"backupType"`
Period string `json:"period"`
OffsetType string `json:"offsetType,omitempty"`
DayOfWeek string `json:"dayOfWeek,omitempty"`
Month string `json:"month,omitempty"`
TimeZone string `json:"timeZone,omitempty"`
RetentionSeconds int `json:"retentionSeconds"`
OffsetSeconds int `json:"offsetSeconds,omitempty"`
HourOfDay int `json:"hourOfDay,omitempty"`
DayOfMonth int `json:"dayOfMonth,omitempty"`
}
BackupSchedule is one schedule of a volume backup policy.
type Base ¶
type Base struct {
TimeCreated time.Time `json:"timeCreated"`
FreeformTags map[string]string `json:"freeformTags"`
DefinedTags map[string]map[string]any `json:"definedTags"`
Internal *Internal `json:"internal,omitempty"`
ID string `json:"id"`
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
LifecycleState string `json:"lifecycleState"`
}
Base is the field set every Core networking resource shares.
type BlockVolumeReplica ¶
type BlockVolumeReplica struct {
TimeLastSynced time.Time `json:"timeLastSynced"`
Base
AvailabilityDomain string `json:"availabilityDomain"`
BlockVolumeID string `json:"blockVolumeId"`
KmsKeyID string `json:"kmsKeyId,omitempty"`
VolumeGroupReplicaID string `json:"volumeGroupReplicaId,omitempty"`
SizeInGBs int64 `json:"sizeInGBs"`
TotalDataTransferredInGBs int64 `json:"totalDataTransferredInGBs"`
}
BlockVolumeReplica is the asynchronous copy of a block volume in another availability domain or region.
type BlockVolumeReplicaInfo ¶
type BlockVolumeReplicaInfo struct {
DisplayName string `json:"displayName"`
BlockVolumeReplicaID string `json:"blockVolumeReplicaId"`
AvailabilityDomain string `json:"availabilityDomain"`
KmsKeyID string `json:"kmsKeyId,omitempty"`
}
BlockVolumeReplicaInfo is the replica summary embedded in a volume.
type BootVolume ¶
type BootVolume struct {
SourceDetails *VolumeSource `json:"sourceDetails,omitempty"`
AutoTunedVpusPerGB *int64 `json:"autoTunedVpusPerGB,omitempty"`
Base
AvailabilityDomain string `json:"availabilityDomain"`
ImageID string `json:"imageId,omitempty"`
KmsKeyID string `json:"kmsKeyId,omitempty"`
VolumeGroupID string `json:"volumeGroupId,omitempty"`
AutotunePolicies []AutotunePolicy `json:"autotunePolicies,omitempty"`
BootVolumeReplicas []BootVolumeReplicaInfo `json:"bootVolumeReplicas,omitempty"`
SizeInMBs int64 `json:"sizeInMBs"`
SizeInGBs int64 `json:"sizeInGBs"`
VpusPerGB int64 `json:"vpusPerGB"`
IsHydrated bool `json:"isHydrated"`
IsAutoTuneEnabled bool `json:"isAutoTuneEnabled"`
}
BootVolume is an instance boot volume.
type BootVolumeAttachment ¶
type BootVolumeAttachment struct {
Base
AvailabilityDomain string `json:"availabilityDomain"`
BootVolumeID string `json:"bootVolumeId"`
InstanceID string `json:"instanceId"`
}
BootVolumeAttachment links a boot volume to an instance.
type BootVolumeBackup ¶
type BootVolumeBackup struct {
TimeRequestReceived time.Time `json:"timeRequestReceived"`
Base
Retention
Type string `json:"type"`
SourceType string `json:"sourceType"`
BootVolumeID string `json:"bootVolumeId"`
ImageID string `json:"imageId,omitempty"`
KmsKeyID string `json:"kmsKeyId,omitempty"`
SourceBootVolumeBackupID string `json:"sourceBootVolumeBackupId,omitempty"`
VolumeGroupBackupID string `json:"volumeGroupBackupId,omitempty"`
Region string `json:"region,omitempty"`
SizeInGBs int64 `json:"sizeInGBs"`
UniqueSizeInGBs int64 `json:"uniqueSizeInGBs"`
}
BootVolumeBackup is a boot volume backup.
type BootVolumeReplica ¶
type BootVolumeReplica struct {
TimeLastSynced time.Time `json:"timeLastSynced"`
Base
AvailabilityDomain string `json:"availabilityDomain"`
BootVolumeID string `json:"bootVolumeId"`
ImageID string `json:"imageId,omitempty"`
KmsKeyID string `json:"kmsKeyId,omitempty"`
VolumeGroupReplicaID string `json:"volumeGroupReplicaId,omitempty"`
SizeInGBs int64 `json:"sizeInGBs"`
TotalDataTransferredInGBs int64 `json:"totalDataTransferredInGBs"`
}
BootVolumeReplica is the asynchronous copy of a boot volume in another availability domain.
type BootVolumeReplicaInfo ¶
type BootVolumeReplicaInfo struct {
DisplayName string `json:"displayName"`
BootVolumeReplicaID string `json:"bootVolumeReplicaId"`
AvailabilityDomain string `json:"availabilityDomain"`
KmsKeyID string `json:"kmsKeyId,omitempty"`
}
BootVolumeReplicaInfo is the replica summary embedded in a boot volume.
type BwOpts ¶
type BwOpts struct {
MinInGbps float64 `json:"minInGbps"`
MaxInGbps float64 `json:"maxInGbps"`
DefaultPerOcpuInGbps float64 `json:"defaultPerOcpuInGbps"`
}
BwOpts are the networking bandwidth options of a flexible shape.
type Byoasn ¶
type Byoasn struct {
TimeValidated *time.Time `json:"timeValidated,omitempty"`
TimeUpdated *time.Time `json:"timeUpdated,omitempty"`
Base
ValidationToken string `json:"validationToken"`
ByoipRanges []ByoasnByoipRange `json:"byoipRanges,omitempty"`
Asn int64 `json:"asn"`
}
Byoasn is an imported autonomous system number.
type ByoasnByoipRange ¶
type ByoasnByoipRange struct {
ByoipRangeID string `json:"byoipRangeId"`
CidrBlock string `json:"cidrBlock,omitempty"`
Ipv6CidrBlock string `json:"ipv6CidrBlock,omitempty"`
AsPathPrependLength int `json:"asPathPrependLength,omitempty"`
}
ByoasnByoipRange is a BYOIP range that originates from a BYOASN.
type ByoipRange ¶
type ByoipRange struct {
TimeValidated *time.Time `json:"timeValidated,omitempty"`
TimeAdvertised *time.Time `json:"timeAdvertised,omitempty"`
TimeWithdrawn *time.Time `json:"timeWithdrawn,omitempty"`
OriginAsn *OriginAsn `json:"originAsn,omitempty"`
Base
CidrBlock string `json:"cidrBlock,omitempty"`
Ipv6CidrBlock string `json:"ipv6CidrBlock,omitempty"`
ValidationToken string `json:"validationToken"`
LifecycleDetail string `json:"lifecycleDetails"`
Ipv6Allocations []ByoipV6Alloc `json:"byoipRangeVcnIpv6Allocations,omitempty"`
}
ByoipRange is an imported public address block; ownership validation and BGP advertisement are recorded only.
type ByoipV6Alloc ¶
type ByoipV6Alloc struct {
ByoipRangeID string `json:"byoipRangeId"`
CompartmentID string `json:"compartmentId"`
Ipv6CidrBlock string `json:"ipv6CidrBlock"`
VcnID string `json:"vcnId"`
}
ByoipV6Alloc is an IPv6 BYOIP prefix handed to a VCN.
type CapacityReservation ¶
type CapacityReservation struct {
TimeUpdated *time.Time `json:"timeUpdated,omitempty"`
Base
AvailabilityDomain string `json:"availabilityDomain"`
Configs []ReservationConfig `json:"instanceReservationConfigs"`
ReservedInstanceCnt int64 `json:"reservedInstanceCount"`
UsedInstanceCnt int64 `json:"usedInstanceCount"`
IsDefaultReservation bool `json:"isDefaultReservation"`
}
CapacityReservation reserves instance capacity in an availability domain; no capacity is physically held.
type CaptureConsoleHistoryIn ¶
type CaptureConsoleHistoryIn struct {
TagsIn
InstanceID string `json:"instanceId"`
DisplayName string `json:"displayName"`
}
CaptureConsoleHistoryIn is the CaptureConsoleHistory request body.
type CaptureFilter ¶
type CaptureFilter struct {
Base
FilterType string `json:"filterType"`
VtapRules []CaptureRule `json:"vtapCaptureFilterRules,omitempty"`
FlowLogRules []CaptureRule `json:"flowLogCaptureFilterRules,omitempty"`
}
CaptureFilter selects the traffic a VTAP mirrors or a VCN flow log records.
type CaptureRule ¶
type CaptureRule struct {
IcmpOptions *IcmpOptions `json:"icmpOptions,omitempty"`
TCPOptions *PortOptions `json:"tcpOptions,omitempty"`
UDPOptions *PortOptions `json:"udpOptions,omitempty"`
IsEnabled *bool `json:"isEnabled,omitempty"`
Priority *int `json:"priority,omitempty"`
SamplingRate *int `json:"samplingRate,omitempty"`
TrafficDirection string `json:"trafficDirection,omitempty"`
RuleAction string `json:"ruleAction,omitempty"`
SourceCidr string `json:"sourceCidr,omitempty"`
DestinationCidr string `json:"destinationCidr,omitempty"`
Protocol string `json:"protocol,omitempty"`
FlowLogType string `json:"flowLogType,omitempty"`
}
CaptureRule is a VTAP or flow log capture filter rule.
type CidrUtilizationItem ¶
type CidrUtilizationItem struct {
Cidr string `json:"cidr"`
AddressType string `json:"addressType"`
Utilization float64 `json:"utilization"`
}
CidrUtilizationItem is one entry of the subnet CIDR utilization.
type CidrUtilizationOut ¶
type CidrUtilizationOut struct {
LastUpdatedTimestamp time.Time `json:"lastUpdatedTimestamp"`
CompartmentID string `json:"compartmentId"`
Message string `json:"message,omitempty"`
Items []CidrUtilizationItem `json:"ipInventoryCidrUtilizationSummary"`
Count int `json:"count"`
}
CidrUtilizationOut is the IpInventoryCidrUtilizationCollection response.
type ComputeCluster ¶
type ComputeCluster struct {
TimeUpdated *time.Time `json:"timeUpdated,omitempty"`
PlacementConstraintDetails map[string]any `json:"placementConstraintDetails,omitempty"`
Base
AvailabilityDomain string `json:"availabilityDomain"`
}
ComputeCluster groups RDMA bare metal instances.
type ConfigProvider ¶
type ConfigProvider interface {
GetOCICoreSettings() Settings
}
ConfigProvider extracts OCI Core Services configuration from the AppContext Config.
type ConsoleHistory ¶
type ConsoleHistory struct {
Base
InstanceID string `json:"instanceId"`
AvailabilityDomain string `json:"availabilityDomain"`
}
ConsoleHistory is a serial console capture of an instance.
type CopyBackupIn ¶
type CopyBackupIn struct {
DestinationRegion string `json:"destinationRegion"`
DisplayName string `json:"displayName"`
KmsKeyID string `json:"kmsKeyId"`
}
CopyBackupIn is the body of CopyVolumeBackup, CopyBootVolumeBackup and CopyVolumeGroupBackup.
type CreateAssignmentIn ¶
type CreateAssignmentIn struct {
AssetID string `json:"assetId"`
PolicyID string `json:"policyId"`
}
CreateAssignmentIn is the CreateVolumeBackupPolicyAssignment request body.
type CreateBootVolumeBackupIn ¶
type CreateBootVolumeBackupIn struct {
TagsIn
RetentionIn
DisplayName string `json:"displayName"`
Type string `json:"type"`
BootVolumeID string `json:"bootVolumeId"`
KmsKeyID string `json:"kmsKeyId"`
}
CreateBootVolumeBackupIn is the CreateBootVolumeBackup request body.
type CreateBootVolumeIn ¶
type CreateBootVolumeIn struct {
TagsIn
SizeInGBs *int64 `json:"sizeInGBs"`
VpusPerGB *int64 `json:"vpusPerGB"`
SourceDetails *VolumeSource `json:"sourceDetails"`
CompartmentID string `json:"compartmentId"`
AvailabilityDomain string `json:"availabilityDomain"`
DisplayName string `json:"displayName"`
KmsKeyID string `json:"kmsKeyId"`
BootVolumeReplicas []ReplicaDetailsIn `json:"bootVolumeReplicas"`
AutotunePolicies []AutotunePolicy `json:"autotunePolicies"`
}
CreateBootVolumeIn is the CreateBootVolume request body.
type CreateByoasnIn ¶
type CreateByoasnIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
Asn int64 `json:"asn"`
}
CreateByoasnIn is the CreateByoasn request body.
type CreateByoipRangeIn ¶
type CreateByoipRangeIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
CidrBlock string `json:"cidrBlock"`
Ipv6CidrBlock string `json:"ipv6CidrBlock"`
}
CreateByoipRangeIn is the CreateByoipRange request body.
type CreateCaptureFilterIn ¶
type CreateCaptureFilterIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
FilterType string `json:"filterType"`
VtapRules []CaptureRule `json:"vtapCaptureFilterRules"`
FlowLogRules []CaptureRule `json:"flowLogCaptureFilterRules"`
}
CreateCaptureFilterIn is the CreateCaptureFilter request body.
type CreateComputeClusterIn ¶
type CreateComputeClusterIn struct {
TagsIn
PlacementConstraintDetails map[string]any `json:"placementConstraintDetails"`
CompartmentID string `json:"compartmentId"`
AvailabilityDomain string `json:"availabilityDomain"`
DisplayName string `json:"displayName"`
}
CreateComputeClusterIn is the CreateComputeCluster request body.
type CreateConsoleConnectionIn ¶
type CreateConsoleConnectionIn struct {
TagsIn
InstanceID string `json:"instanceId"`
PublicKey string `json:"publicKey"`
}
CreateConsoleConnectionIn is the CreateInstanceConsoleConnection request body.
type CreateDhcpOptionsIn ¶
type CreateDhcpOptionsIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
VcnID string `json:"vcnId"`
DisplayName string `json:"displayName"`
DomainNameType string `json:"domainNameType"`
Options []DhcpOption `json:"options"`
}
CreateDhcpOptionsIn is the CreateDhcpOptions request body.
type CreateDrgAttachmentIn ¶
type CreateDrgAttachmentIn struct {
TagsIn
NetworkDetails *DrgNetworkDetails `json:"networkDetails"`
DoesPreserveOriginalRoutesWithNat *bool `json:"doesPreserveOriginalRoutesWithNat"`
DisplayName string `json:"displayName"`
DrgID string `json:"drgId"`
DrgRouteTableID string `json:"drgRouteTableId"`
RouteTableID string `json:"routeTableId"`
VcnID string `json:"vcnId"`
DrgNatPolicyID string `json:"drgNatPolicyId"`
}
CreateDrgAttachmentIn is the CreateDrgAttachment request body.
type CreateDrgIn ¶
type CreateDrgIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
}
CreateDrgIn is the CreateDrg request body.
type CreateDrgNatPolicyIn ¶
type CreateDrgNatPolicyIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
}
CreateDrgNatPolicyIn is the CreateDrgNatPolicy request body.
type CreateDrgRouteDistributionIn ¶
type CreateDrgRouteDistributionIn struct {
TagsIn
DrgID string `json:"drgId"`
DisplayName string `json:"displayName"`
DistributionType string `json:"distributionType"`
}
CreateDrgRouteDistributionIn is the CreateDrgRouteDistribution request body.
type CreateDrgRouteTableIn ¶
type CreateDrgRouteTableIn struct {
TagsIn
IsEcmpEnabled *bool `json:"isEcmpEnabled"`
DrgID string `json:"drgId"`
DisplayName string `json:"displayName"`
ImportDrgRouteDistributionID string `json:"importDrgRouteDistributionId"`
}
CreateDrgRouteTableIn is the CreateDrgRouteTable request body.
type CreateDvhIn ¶
type CreateDvhIn struct {
TagsIn
PlacementConstraintDetails map[string]any `json:"placementConstraintDetails"`
IsMemoryEncryptionEnabled *bool `json:"isMemoryEncryptionEnabled"`
IsBurstable *bool `json:"isBurstable"`
CompartmentID string `json:"compartmentId"`
AvailabilityDomain string `json:"availabilityDomain"`
DedicatedVMHostShape string `json:"dedicatedVmHostShape"`
DisplayName string `json:"displayName"`
FaultDomain string `json:"faultDomain"`
CapacityConfig string `json:"capacityConfig"`
}
CreateDvhIn is the CreateDedicatedVMHost request body.
type CreateImageIn ¶
type CreateImageIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
InstanceID string `json:"instanceId"`
LaunchMode string `json:"launchMode"`
}
CreateImageIn is the CreateImage request body.
type CreateInstanceConfigurationIn ¶
type CreateInstanceConfigurationIn struct {
TagsIn
InstanceDetails map[string]any `json:"instanceDetails"`
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
InstanceID string `json:"instanceId"`
}
CreateInstanceConfigurationIn is the CreateInstanceConfiguration request body (either shape).
type CreateInstancePoolIn ¶
type CreateInstancePoolIn struct {
TagsIn
Size *int `json:"size"`
LifecycleManagement map[string]any `json:"lifecycleManagement"`
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
InstanceConfigurationID string `json:"instanceConfigurationId"`
InstanceDisplayNameFmt string `json:"instanceDisplayNameFormatter"`
InstanceHostnameFmt string `json:"instanceHostnameFormatter"`
LoadBalancers []AttachLoadBalancerIn `json:"loadBalancers"`
Placements []PoolPlacement `json:"placementConfigurations"`
}
CreateInstancePoolIn is the CreateInstancePool request body.
type CreateInternetGatewayIn ¶
type CreateInternetGatewayIn struct {
TagsIn
IsEnabled *bool `json:"isEnabled"`
CompartmentID string `json:"compartmentId"`
VcnID string `json:"vcnId"`
DisplayName string `json:"displayName"`
RouteTableID string `json:"routeTableId"`
}
CreateInternetGatewayIn is the CreateInternetGateway request body.
type CreateIpv6In ¶
type CreateIpv6In struct {
TagsIn
CidrPrefixLength *int `json:"cidrPrefixLength"`
Hostname *string `json:"hostname"`
DisplayName string `json:"displayName"`
IPAddress string `json:"ipAddress"`
VnicID string `json:"vnicId"`
SubnetID string `json:"subnetId"`
Lifetime string `json:"lifetime"`
RouteTableID string `json:"routeTableId"`
Ipv6SubnetCidr string `json:"ipv6SubnetCidr"`
}
CreateIpv6In is the CreateIpv6 request body.
type CreateLpgIn ¶
type CreateLpgIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
VcnID string `json:"vcnId"`
DisplayName string `json:"displayName"`
RouteTableID string `json:"routeTableId"`
}
CreateLpgIn is the CreateLocalPeeringGateway request body.
type CreateNatGatewayIn ¶
type CreateNatGatewayIn struct {
TagsIn
BlockTraffic *bool `json:"blockTraffic"`
CompartmentID string `json:"compartmentId"`
VcnID string `json:"vcnId"`
DisplayName string `json:"displayName"`
PublicIPID string `json:"publicIpId"`
RouteTableID string `json:"routeTableId"`
}
CreateNatGatewayIn is the CreateNatGateway request body.
type CreateNsgIn ¶
type CreateNsgIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
VcnID string `json:"vcnId"`
DisplayName string `json:"displayName"`
}
CreateNsgIn is the CreateNetworkSecurityGroup request body.
type CreatePrivateIPIn ¶
type CreatePrivateIPIn struct {
TagsIn
DisplayName string `json:"displayName"`
HostnameLabel string `json:"hostnameLabel"`
IPAddress string `json:"ipAddress"`
Lifetime string `json:"lifetime"`
SubnetID string `json:"subnetId"`
VnicID string `json:"vnicId"`
VlanID string `json:"vlanId"`
RouteTableID string `json:"routeTableId"`
CidrPrefixLength *int `json:"cidrPrefixLength"`
Ipv4SubnetCidr string `json:"ipv4SubnetCidrAtCreation"`
}
CreatePrivateIPIn is the CreatePrivateIp request body.
type CreatePublicIPIn ¶
type CreatePublicIPIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
Lifetime string `json:"lifetime"`
PrivateIPID string `json:"privateIpId"`
PublicIPPoolID string `json:"publicIpPoolId"`
}
CreatePublicIPIn is the CreatePublicIp request body.
type CreatePublicIPPoolIn ¶
type CreatePublicIPPoolIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
}
CreatePublicIPPoolIn is the CreatePublicIpPool request body.
type CreateReservationIn ¶
type CreateReservationIn struct {
TagsIn
IsDefaultReservation *bool `json:"isDefaultReservation"`
CompartmentID string `json:"compartmentId"`
AvailabilityDomain string `json:"availabilityDomain"`
DisplayName string `json:"displayName"`
Configs []ReservationConfig `json:"instanceReservationConfigs"`
}
CreateReservationIn is the CreateComputeCapacityReservation request body.
type CreateRouteTableIn ¶
type CreateRouteTableIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
VcnID string `json:"vcnId"`
DisplayName string `json:"displayName"`
RouteRules []RouteRule `json:"routeRules"`
}
CreateRouteTableIn is the CreateRouteTable request body.
type CreateSecurityListIn ¶
type CreateSecurityListIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
VcnID string `json:"vcnId"`
DisplayName string `json:"displayName"`
IngressRules []IngressRule `json:"ingressSecurityRules"`
EgressRules []EgressRule `json:"egressSecurityRules"`
}
CreateSecurityListIn is the CreateSecurityList request body.
type CreateServiceGatewayIn ¶
type CreateServiceGatewayIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
VcnID string `json:"vcnId"`
DisplayName string `json:"displayName"`
RouteTableID string `json:"routeTableId"`
Services []ServiceIDIn `json:"services"`
}
CreateServiceGatewayIn is the CreateServiceGateway request body.
type CreateSubnetIn ¶
type CreateSubnetIn struct {
TagsIn
ProhibitInternetIngress *bool `json:"prohibitInternetIngress"`
ProhibitPublicIPOnVnic *bool `json:"prohibitPublicIpOnVnic"`
DhcpOptionsID string `json:"dhcpOptionsId"`
AvailabilityDomain string `json:"availabilityDomain"`
CidrBlock string `json:"cidrBlock"`
VcnID string `json:"vcnId"`
DisplayName string `json:"displayName"`
DNSLabel string `json:"dnsLabel"`
Ipv6CidrBlock string `json:"ipv6CidrBlock"`
RouteTableID string `json:"routeTableId"`
CompartmentID string `json:"compartmentId"`
Ipv4CidrBlocks []string `json:"ipv4CidrBlocks"`
Ipv6CidrBlocks []string `json:"ipv6CidrBlocks"`
SecurityListIDs []string `json:"securityListIds"`
}
CreateSubnetIn is the CreateSubnet request body.
type CreateVcnIn ¶
type CreateVcnIn struct {
TagsIn
IsIpv6Enabled *bool `json:"isIpv6Enabled"`
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
CidrBlock string `json:"cidrBlock"`
DNSLabel string `json:"dnsLabel"`
CidrBlocks []string `json:"cidrBlocks"`
Ipv6PrivateCidrs []string `json:"ipv6PrivateCidrBlocks"`
Byoipv6 []struct {
Byoipv6RangeID string `json:"byoipv6RangeId"`
Ipv6CidrBlock string `json:"ipv6CidrBlock"`
} `json:"byoipv6CidrDetails"`
}
CreateVcnIn is the CreateVcn request body.
type CreateVlanIn ¶
type CreateVlanIn struct {
TagsIn
VlanTag *int `json:"vlanTag"`
CompartmentID string `json:"compartmentId"`
VcnID string `json:"vcnId"`
CidrBlock string `json:"cidrBlock"`
AvailabilityDomain string `json:"availabilityDomain"`
DisplayName string `json:"displayName"`
RouteTableID string `json:"routeTableId"`
NsgIDs []string `json:"nsgIds"`
}
CreateVlanIn is the CreateVlan request body.
type CreateVnicIn ¶
type CreateVnicIn struct {
TagsIn
AssignPublicIP *bool `json:"assignPublicIp"`
AssignIpv6IP *bool `json:"assignIpv6Ip"`
SkipSourceDestCheck *bool `json:"skipSourceDestCheck"`
DisplayName string `json:"displayName"`
HostnameLabel string `json:"hostnameLabel"`
PrivateIP string `json:"privateIp"`
SubnetID string `json:"subnetId"`
VlanID string `json:"vlanId"`
NsgIDs []string `json:"nsgIds"`
SubnetCidr string `json:"subnetCidr"`
Ipv6Pairs []Ipv6Pair `json:"ipv6AddressIpv6SubnetCidrPairDetails"`
}
CreateVnicIn is createVnicDetails.
type CreateVolumeBackupIn ¶
type CreateVolumeBackupIn struct {
TagsIn
RetentionIn
DisplayName string `json:"displayName"`
Type string `json:"type"`
VolumeID string `json:"volumeId"`
KmsKeyID string `json:"kmsKeyId"`
}
CreateVolumeBackupIn is the CreateVolumeBackup request body.
type CreateVolumeBackupPolicyIn ¶
type CreateVolumeBackupPolicyIn struct {
TagsIn
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
DestinationRegion string `json:"destinationRegion"`
Schedules []BackupSchedule `json:"schedules"`
}
CreateVolumeBackupPolicyIn is the CreateVolumeBackupPolicy request body.
type CreateVolumeGroupBackupIn ¶
type CreateVolumeGroupBackupIn struct {
TagsIn
RetentionIn
VolumeGroupID string `json:"volumeGroupId"`
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
Type string `json:"type"`
}
CreateVolumeGroupBackupIn is the CreateVolumeGroupBackup request body.
type CreateVolumeGroupIn ¶
type CreateVolumeGroupIn struct {
TagsIn
SourceDetails *VolumeGroupSource `json:"sourceDetails"`
CompartmentID string `json:"compartmentId"`
AvailabilityDomain string `json:"availabilityDomain"`
DisplayName string `json:"displayName"`
BackupPolicyID string `json:"backupPolicyId"`
VolumeGroupReplicas []ReplicaDetailsIn `json:"volumeGroupReplicas"`
}
CreateVolumeGroupIn is the CreateVolumeGroup request body.
type CreateVolumeIn ¶
type CreateVolumeIn struct {
TagsIn
SizeInGBs *int64 `json:"sizeInGBs"`
SizeInMBs *int64 `json:"sizeInMBs"`
VpusPerGB *int64 `json:"vpusPerGB"`
IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"`
SourceDetails *VolumeSource `json:"sourceDetails"`
AvailabilityDomain string `json:"availabilityDomain"`
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
KmsKeyID string `json:"kmsKeyId"`
VolumeBackupID string `json:"volumeBackupId"`
BackupPolicyID string `json:"backupPolicyId"`
AutotunePolicies []AutotunePolicy `json:"autotunePolicies"`
BlockVolumeReplicas []ReplicaDetailsIn `json:"blockVolumeReplicas"`
}
CreateVolumeIn is the CreateVolume request body.
type CreateVtapIn ¶
type CreateVtapIn struct {
TagsIn
VxlanNetworkIdentifier *int64 `json:"vxlanNetworkIdentifier"`
IsVtapEnabled *bool `json:"isVtapEnabled"`
MaxPacketSize *int `json:"maxPacketSize"`
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
VcnID string `json:"vcnId"`
SourceID string `json:"sourceId"`
CaptureFilterID string `json:"captureFilterId"`
TargetID string `json:"targetId"`
TargetIP string `json:"targetIp"`
EncapsulationProtocol string `json:"encapsulationProtocol"`
SourceType string `json:"sourceType"`
TargetType string `json:"targetType"`
TrafficMode string `json:"trafficMode"`
SourcePrivateEndpointIP string `json:"sourcePrivateEndpointIp"`
SourcePrivateEndpointSubnetID string `json:"sourcePrivateEndpointSubnetId"`
}
CreateVtapIn is the CreateVtap request body.
type DedicatedVMHost ¶
type DedicatedVMHost struct {
PlacementConstraintDetails map[string]any `json:"placementConstraintDetails,omitempty"`
Base
AvailabilityDomain string `json:"availabilityDomain"`
DedicatedVMHostShape string `json:"dedicatedVmHostShape"`
FaultDomain string `json:"faultDomain,omitempty"`
CapacityConfig string `json:"capacityConfig,omitempty"`
TotalOcpus float64 `json:"totalOcpus"`
RemainingOcpus float64 `json:"remainingOcpus"`
TotalMemoryInGBs float64 `json:"totalMemoryInGBs"`
RemainingMemoryInGBs float64 `json:"remainingMemoryInGBs"`
IsMemoryEncryption bool `json:"isMemoryEncryptionEnabled"`
IsBurstable bool `json:"isBurstable"`
}
DedicatedVMHost is a dedicated VM host with two sockets; instances are placed on one socket each.
type DefaultDrgRouteTables ¶
type DefaultDrgRouteTables struct {
Vcn string `json:"vcn,omitempty"`
IpsecTunnel string `json:"ipsecTunnel,omitempty"`
VirtualCircuit string `json:"virtualCircuit,omitempty"`
RemotePeeringConnection string `json:"remotePeeringConnection,omitempty"`
}
DefaultDrgRouteTables names the default DRG route table of each attachment type.
type DetachLoadBalancerIn ¶
type DetachLoadBalancerIn struct {
LoadBalancerID string `json:"loadBalancerId"`
BackendSetName string `json:"backendSetName"`
}
DetachLoadBalancerIn is DetachLoadBalancerDetails.
type DhcpOption ¶
type DhcpOption struct {
Type string `json:"type"`
ServerType string `json:"serverType,omitempty"`
CustomDNSServers []string `json:"customDnsServers,omitempty"`
SearchDomainNames []string `json:"searchDomainNames,omitempty"`
}
DhcpOption is one DHCP option; Type selects the populated fields.
type DhcpOptions ¶
type DhcpOptions struct {
Base
VcnID string `json:"vcnId"`
DomainNameType string `json:"domainNameType,omitempty"`
Options []DhcpOption `json:"options"`
}
DhcpOptions is a set of DHCP options.
type Drg ¶
type Drg struct {
DefaultDrgRouteTables *DefaultDrgRouteTables `json:"defaultDrgRouteTables,omitempty"`
Base
DefaultExportDrgRouteDistributionID string `json:"defaultExportDrgRouteDistributionId,omitempty"`
}
Drg is a dynamic routing gateway.
type DrgAttachment ¶
type DrgAttachment struct {
NetworkDetails *DrgNetworkDetails `json:"networkDetails,omitempty"`
PreservesNatRoutes *bool `json:"doesPreserveOriginalRoutesWithNat,omitempty"`
Base
DrgID string `json:"drgId"`
DrgRouteTableID string `json:"drgRouteTableId,omitempty"`
ExportDrgRouteDistributionID string `json:"exportDrgRouteDistributionId,omitempty"`
RouteTableID string `json:"routeTableId,omitempty"`
VcnID string `json:"vcnId,omitempty"`
DrgNatPolicyID string `json:"drgNatPolicyId,omitempty"`
IsCrossTenancy bool `json:"isCrossTenancy"`
}
DrgAttachment links a DRG to a network.
type DrgMatchCriteria ¶
type DrgMatchCriteria struct {
MatchType string `json:"matchType"`
AttachmentType string `json:"attachmentType,omitempty"`
DrgAttachmentID string `json:"drgAttachmentId,omitempty"`
}
DrgMatchCriteria is one match of a distribution statement.
type DrgNatPolicy ¶
type DrgNatPolicy struct {
Base
Rules []DrgNatRule `json:"rules,omitempty"`
}
DrgNatPolicy is an ordered set of DRG NAT rules that DRG attachments reference; traffic is not translated.
type DrgNatRule ¶
type DrgNatRule struct {
ID string `json:"id"`
DrgNatPolicyID string `json:"drgNatPolicyId"`
OriginalSource string `json:"originalSource,omitempty"`
TranslatedSource string `json:"translatedSource,omitempty"`
OriginalDestination string `json:"originalDestination,omitempty"`
TranslatedDestination string `json:"translatedDestination,omitempty"`
Priority int64 `json:"drgNatRulePriority"`
}
DrgNatRule maps an original source or destination to a translated one.
type DrgNatRuleIn ¶
type DrgNatRuleIn struct {
Priority *int64 `json:"drgNatRulePriority"`
OriginalSource *string `json:"originalSource"`
TranslatedSource *string `json:"translatedSource"`
OriginalDestination *string `json:"originalDestination"`
TranslatedDestination *string `json:"translatedDestination"`
ID string `json:"id"`
}
DrgNatRuleIn is one rule of AddDrgNatRules and UpdateDrgNatRules.
type DrgNetworkDetails ¶
type DrgNetworkDetails struct {
TransportOnlyMode *bool `json:"transportOnlyMode,omitempty"`
Type string `json:"type"`
ID string `json:"id,omitempty"`
RouteTableID string `json:"routeTableId,omitempty"`
VcnRouteType string `json:"vcnRouteType,omitempty"`
IpsecConnectionID string `json:"ipsecConnectionId,omitempty"`
TransportAttachmentID string `json:"transportAttachmentId,omitempty"`
IDs []string `json:"ids,omitempty"`
}
DrgNetworkDetails is the polymorphic network of a DRG attachment (type VCN, IPSEC_TUNNEL, ...).
type DrgNetworkIn ¶
DrgNetworkIn describes a non-VCN attachment registered by the service that owns the network (an IPSec connection, virtual circuit or remote peering connection).
type DrgRedundancy ¶
DrgRedundancy is the GetDrgRedundancyStatus response.
type DrgRouteDistribution ¶
type DrgRouteDistribution struct {
Base
DrgID string `json:"drgId"`
DistributionType string `json:"distributionType"`
Statements []DrgStatement `json:"statements,omitempty"`
}
DrgRouteDistribution decides which routes an import table learns or an attachment advertises.
type DrgRouteTable ¶
type DrgRouteTable struct {
Base
DrgID string `json:"drgId"`
ImportDrgRouteDistributionID string `json:"importDrgRouteDistributionId,omitempty"`
Rules []DrgStaticRule `json:"staticRules,omitempty"`
IsEcmpEnabled bool `json:"isEcmpEnabled"`
}
DrgRouteTable is a DRG route table; dynamic routes come from its import distribution.
type DrgRuleIn ¶
type DrgRuleIn struct {
Destination string `json:"destination"`
DestinationType string `json:"destinationType"`
NextHopDrgAttachmentID string `json:"nextHopDrgAttachmentId"`
}
DrgRuleIn is a rule of AddDrgRouteRules.
type DrgRuleWire ¶
type DrgRuleWire struct {
Destination string `json:"destination"`
DestinationType string `json:"destinationType"`
NextHopDrgAttachmentID string `json:"nextHopDrgAttachmentId"`
ID string `json:"id"`
RouteProvenance string `json:"routeProvenance"`
RouteType string `json:"routeType"`
IsConflict bool `json:"isConflict"`
IsBlackhole bool `json:"isBlackhole"`
}
DrgRuleWire is a DRG route table rule as returned by the API.
type DrgStatement ¶
type DrgStatement struct {
ID string `json:"id"`
Action string `json:"action"`
MatchCriteria []DrgMatchCriteria `json:"matchCriteria"`
Priority int `json:"priority"`
}
DrgStatement is one statement of a route distribution.
type DrgStatementIn ¶
type DrgStatementIn struct {
Priority *int `json:"priority"`
Action string `json:"action"`
MatchCriteria []DrgMatchCriteria `json:"matchCriteria"`
}
DrgStatementIn is a statement of AddDrgRouteDistributionStatements.
type DrgStaticRule ¶
type DrgStaticRule struct {
ID string `json:"id"`
Destination string `json:"destination"`
DestinationType string `json:"destinationType"`
NextHopDrgAttachmentID string `json:"nextHopDrgAttachmentId"`
}
DrgStaticRule is a static rule of a DRG route table.
type DrgUpgradeStatus ¶
type DrgUpgradeStatus struct {
DrgID string `json:"drgId"`
Status string `json:"status"`
UpgradedConnections string `json:"upgradedConnections"`
}
DrgUpgradeStatus is the GetUpgradeStatus response.
type DvhInstance ¶
type DvhInstance struct {
TimeCreated time.Time `json:"timeCreated"`
InstanceID string `json:"instanceId"`
AvailabilityDomain string `json:"availabilityDomain"`
CompartmentID string `json:"compartmentId"`
Shape string `json:"shape"`
}
DvhInstance is a DedicatedVMHostInstanceSummary.
type EgressRule ¶
type EgressRule struct {
IcmpOptions *IcmpOptions `json:"icmpOptions,omitempty"`
TCPOptions *PortOptions `json:"tcpOptions,omitempty"`
UDPOptions *PortOptions `json:"udpOptions,omitempty"`
IsStateless *bool `json:"isStateless,omitempty"`
Protocol string `json:"protocol"`
Destination string `json:"destination"`
DestinationType string `json:"destinationType,omitempty"`
Description string `json:"description,omitempty"`
}
EgressRule is a security list egress rule.
type Flow ¶
Flow is a new connection from a source to a destination. Protocol is tcp, udp, icmp, icmpv6, all or an IANA number.
type Handler ¶
type Handler struct {
Backend *InMemoryBackend
Port int
EnforceAuth bool
// contains filtered or unexported fields
}
Handler serves OCI Core Services (core API 20160918): networking, compute and block storage control plane.
func NewHandler ¶
func NewHandler(backend *InMemoryBackend) *Handler
NewHandler creates a Handler; callers override Port and EnforceAuth from Settings.
func (*Handler) ExtractOperation ¶
ExtractOperation returns the operation name for metrics.
func (*Handler) ExtractResource ¶
ExtractResource returns the addressed resource id for metrics.
func (*Handler) GetSupportedOperations ¶
GetSupportedOperations lists the supported operations.
func (*Handler) Handler ¶
func (h *Handler) Handler() echo.HandlerFunc
Handler returns the Echo handler for all OCI Core Services requests.
func (*Handler) MatchPriority ¶
MatchPriority is irrelevant because RouteMatcher never matches.
func (*Handler) RouteMatcher ¶
RouteMatcher never matches: OCI Core Services runs on its own listener.
func (*Handler) Snapshot ¶
Snapshot implements persistence.Persistable by delegating to the backend.
func (*Handler) StartWorker ¶
StartWorker binds the dedicated listener synchronously so a port conflict is returned to the caller.
func (*Handler) Trusted ¶
func (h *Handler) Trusted() echo.HandlerFunc
Trusted returns a handler that skips request-signature verification, for the in-process dashboard proxy.
type IPInventoryRequest ¶
type IPInventoryRequest struct {
Details InventoryDetails `json:"details"`
Seq int64 `json:"seq"`
}
IPInventoryRequest is a stored ListIpInventory request that GetResourceIpInventory replays.
type IcmpOptions ¶
IcmpOptions are ICMP match options.
type Image ¶
type Image struct {
Base
OperatingSystem string `json:"operatingSystem"`
OperatingSystemVersion string `json:"operatingSystemVersion"`
BaseImageID string `json:"baseImageId,omitempty"`
LaunchMode string `json:"launchMode"`
ListingType string `json:"listingType"`
SizeInMBs int64 `json:"sizeInMBs"`
BillableSizeInGBs int64 `json:"billableSizeInGBs"`
CreateImageAllowed bool `json:"createImageAllowed"`
}
Image is a platform or custom image.
type ImageListOpts ¶
type ImageListOpts struct {
Compartment, Name, OS, OSVersion, Shape, State, SortBy, Order, Page string
Limit int
}
ImageListOpts are the ListImages filters.
type InMemoryBackend ¶
type InMemoryBackend struct {
// Auth is the API-key registry shared with the other OCI services.
Auth *ociauth.Registry
// contains filtered or unexported fields
}
InMemoryBackend holds all Core networking state under one lock.
func NewInMemoryBackend ¶
func NewInMemoryBackend() *InMemoryBackend
NewInMemoryBackend creates an empty backend.
func (*InMemoryBackend) AddDrgNatRules ¶
func (b *InMemoryBackend) AddDrgNatRules(id, ifMatch string, rules []DrgNatRuleIn) (string, *APIError)
AddDrgNatRules adds rules to a policy, all or none.
func (*InMemoryBackend) AddDrgRouteDistributionStatements ¶
func (b *InMemoryBackend) AddDrgRouteDistributionStatements( id string, in AddDrgStatementsIn, ) ([]DrgStatement, *APIError)
AddDrgRouteDistributionStatements adds statements to a distribution, all or nothing.
func (*InMemoryBackend) AddDrgRouteRules ¶
func (b *InMemoryBackend) AddDrgRouteRules(id string, in AddDrgRulesIn) ([]DrgRuleWire, *APIError)
AddDrgRouteRules adds static rules, all or nothing.
func (*InMemoryBackend) AddIpv4SubnetCidr ¶
func (b *InMemoryBackend) AddIpv4SubnetCidr(id, ifMatch, cidr string) (string, *APIError)
AddIpv4SubnetCidr adds an IPv4 block to a subnet and returns the work request id.
func (*InMemoryBackend) AddIpv6SubnetCidr ¶
func (b *InMemoryBackend) AddIpv6SubnetCidr(id, ifMatch, cidr string) (string, string, *APIError)
AddIpv6SubnetCidr adds an IPv6 /64 from the VCN's prefixes to a subnet and returns the work request id.
func (*InMemoryBackend) AddIpv6VcnCidr ¶
func (b *InMemoryBackend) AddIpv6VcnCidr(id, ifMatch string, in AddVcnIpv6In) (string, *APIError)
AddIpv6VcnCidr adds an Oracle-allocated /56 or a private ULA prefix to a VCN.
func (*InMemoryBackend) AddPublicIPPoolCapacity ¶
func (b *InMemoryBackend) AddPublicIPPoolCapacity(id, ifMatch string, in PoolCapacityIn) (Resource, string, *APIError)
AddPublicIPPoolCapacity adds a sub-range of a provisioned IPv4 BYOIP range to a pool.
func (*InMemoryBackend) AddSecurityRules ¶
func (b *InMemoryBackend) AddSecurityRules(id string, in SecurityRulesIn) (SecurityRulesOut, *APIError)
AddSecurityRules adds rules to an NSG; either all are added or none.
func (*InMemoryBackend) AddVcnCidr ¶
func (b *InMemoryBackend) AddVcnCidr(id, ifMatch, cidr string) (string, *APIError)
AddVcnCidr adds an IPv4 CIDR block to a VCN and returns the work request id.
func (*InMemoryBackend) AdvertiseByoipRange ¶
func (b *InMemoryBackend) AdvertiseByoipRange(id, ifMatch string) *APIError
AdvertiseByoipRange records the BGP advertisement; no route is announced.
func (*InMemoryBackend) AttachBootVolume ¶
func (b *InMemoryBackend) AttachBootVolume(in AttachBootVolumeIn) (Resource, string, *APIError)
AttachBootVolume attaches a standalone boot volume to an instance of the same availability domain.
func (*InMemoryBackend) AttachDrgNetwork ¶
func (b *InMemoryBackend) AttachDrgNetwork(in DrgNetworkIn) (string, error)
AttachDrgNetwork registers an IPSec tunnel, virtual circuit or remote peering connection with a DRG.
func (*InMemoryBackend) AttachLoadBalancer ¶
func (b *InMemoryBackend) AttachLoadBalancer( poolID, ifMatch string, in AttachLoadBalancerIn, ) (Resource, string, *APIError)
AttachLoadBalancer attaches a backend set of a load balancer to the pool; the pool's instances become backends.
func (*InMemoryBackend) AttachPoolInstance ¶
func (b *InMemoryBackend) AttachPoolInstance(poolID, instID string) (PoolInstance, *APIError)
AttachPoolInstance adds an existing instance to a pool and grows the pool by one.
func (*InMemoryBackend) AttachService ¶
func (b *InMemoryBackend) AttachService(id, ifMatch string, in ServiceIDIn) (Resource, string, *APIError)
AttachService adds a service to a service gateway.
func (*InMemoryBackend) AttachVnic ¶
func (b *InMemoryBackend) AttachVnic(in AttachVnicIn) (Resource, string, *APIError)
AttachVnic attaches a new secondary VNIC to an instance.
func (*InMemoryBackend) AttachVolume ¶
func (b *InMemoryBackend) AttachVolume(in AttachVolumeIn) (Resource, string, *APIError)
AttachVolume attaches a block volume to an instance.
func (*InMemoryBackend) BulkCreateIpv6s ¶
func (b *InMemoryBackend) BulkCreateIpv6s(token string, in bulkIpv6CreateIn) (string, *APIError)
BulkCreateIpv6s creates IPv6 addresses in one request, all or none.
func (*InMemoryBackend) BulkCreatePrivateIPs ¶
func (b *InMemoryBackend) BulkCreatePrivateIPs(token string, in bulkCreateIn) (string, *APIError)
BulkCreatePrivateIPs creates secondary private IPs in one request, all or none.
func (*InMemoryBackend) BulkDeleteIpv6s ¶
func (b *InMemoryBackend) BulkDeleteIpv6s(token string, in bulkIpv6DeleteIn) (string, *APIError)
BulkDeleteIpv6s deletes IPv6 addresses in one request, all or none.
func (*InMemoryBackend) BulkDeletePrivateIPs ¶
func (b *InMemoryBackend) BulkDeletePrivateIPs(token string, in bulkIDsIn) (string, *APIError)
BulkDeletePrivateIPs deletes secondary private IPs in one request, all or none.
func (*InMemoryBackend) BulkDetachIpv6s ¶
func (b *InMemoryBackend) BulkDetachIpv6s(token string, in bulkIpv6DetachIn) (string, *APIError)
BulkDetachIpv6s unassigns reserved IPv6 addresses from a VNIC in one request, all or none.
func (*InMemoryBackend) BulkDetachPrivateIPs ¶
func (b *InMemoryBackend) BulkDetachPrivateIPs(token string, in bulkDetachIn) (string, *APIError)
BulkDetachPrivateIPs unassigns reserved private IPs from a VNIC in one request, all or none.
func (*InMemoryBackend) BulkUpdateIpv6s ¶
func (b *InMemoryBackend) BulkUpdateIpv6s(token string, in bulkIpv6UpdateIn) (string, *APIError)
BulkUpdateIpv6s updates IPv6 addresses, optionally moving them to another VNIC, all or none.
func (*InMemoryBackend) BulkUpdatePrivateIPs ¶
func (b *InMemoryBackend) BulkUpdatePrivateIPs(token string, in bulkUpdateIn) (string, *APIError)
BulkUpdatePrivateIPs updates secondary private IPs, optionally moving them to another VNIC, all or none.
func (*InMemoryBackend) CanReach ¶
func (b *InMemoryBackend) CanReach(src, dst Endpoint, f Flow) (Verdict, error)
CanReach evaluates whether a new connection from src to dst passes the security lists and network security groups of both VNICs, including the reply path when a matched rule is stateless. Only traffic inside one VCN is evaluated; nothing enforces it.
func (*InMemoryBackend) CaptureConsoleHistory ¶
func (b *InMemoryBackend) CaptureConsoleHistory(in CaptureConsoleHistoryIn) (Resource, string, *APIError)
CaptureConsoleHistory records a console history request; no VM executes, so the captured content is empty.
func (*InMemoryBackend) ChangeDrgCompartment ¶
func (b *InMemoryBackend) ChangeDrgCompartment(id, compartment, ifMatch string) *APIError
ChangeDrgCompartment moves a DRG; its route tables, distributions and attachments always follow it.
func (*InMemoryBackend) ClassifyPeer ¶
func (b *InMemoryBackend) ClassifyPeer(srcIP, dstVnicID string, f Flow) PeerClass
ClassifyPeer evaluates a new connection from the private IP srcIP to a VNIC, for services that learn the caller only from its connection address.
func (*InMemoryBackend) Close ¶
func (b *InMemoryBackend) Close()
Close stops background work: load balancer synchronisation returns as soon as it is observed.
func (*InMemoryBackend) Compartments ¶
func (b *InMemoryBackend) Compartments() []string
Compartments lists the distinct compartments that hold live resources.
func (*InMemoryBackend) ConnectLocalPeeringGateways ¶
func (b *InMemoryBackend) ConnectLocalPeeringGateways(id, peerID, ifMatch string) *APIError
ConnectLocalPeeringGateways peers a gateway with another one in a different VCN.
func (*InMemoryBackend) CopyBootVolumeBackup ¶
func (b *InMemoryBackend) CopyBootVolumeBackup(id string, in CopyBackupIn) (Resource, string, string, *APIError)
CopyBootVolumeBackup copies an AVAILABLE boot volume backup to another region.
func (*InMemoryBackend) CopyVolumeBackup ¶
func (b *InMemoryBackend) CopyVolumeBackup(id string, in CopyBackupIn) (Resource, string, string, *APIError)
CopyVolumeBackup copies an AVAILABLE volume backup to another region; the copy is CREATING until the clock settles.
func (*InMemoryBackend) CopyVolumeGroupBackup ¶
func (b *InMemoryBackend) CopyVolumeGroupBackup(id string, in CopyBackupIn) (Resource, string, string, *APIError)
CopyVolumeGroupBackup copies a group backup and every member backup to another region.
func (*InMemoryBackend) CreateBootVolume ¶
func (b *InMemoryBackend) CreateBootVolume(in CreateBootVolumeIn) (Resource, string, *APIError)
CreateBootVolume clones a boot volume or restores a boot volume backup.
func (*InMemoryBackend) CreateBootVolumeBackup ¶
func (b *InMemoryBackend) CreateBootVolumeBackup(in CreateBootVolumeBackupIn) (Resource, string, *APIError)
CreateBootVolumeBackup snapshots a boot volume; the first backup of a boot volume is always FULL.
func (*InMemoryBackend) CreateByoasn ¶
func (b *InMemoryBackend) CreateByoasn(in CreateByoasnIn) (Resource, string, *APIError)
CreateByoasn records an imported ASN; it stays CREATING until validated.
func (*InMemoryBackend) CreateByoipRange ¶
func (b *InMemoryBackend) CreateByoipRange(in CreateByoipRangeIn) (Resource, string, *APIError)
CreateByoipRange records an import request; the range stays CREATING until it is validated.
func (*InMemoryBackend) CreateCaptureFilter ¶
func (b *InMemoryBackend) CreateCaptureFilter(in CreateCaptureFilterIn) (Resource, string, *APIError)
CreateCaptureFilter creates a VTAP or flow log capture filter.
func (*InMemoryBackend) CreateComputeCapacityReservation ¶
func (b *InMemoryBackend) CreateComputeCapacityReservation(in CreateReservationIn) (Resource, string, *APIError)
CreateComputeCapacityReservation creates a reservation.
func (*InMemoryBackend) CreateComputeCluster ¶
func (b *InMemoryBackend) CreateComputeCluster(in CreateComputeClusterIn) (Resource, string, *APIError)
CreateComputeCluster creates a compute cluster.
func (*InMemoryBackend) CreateDedicatedVMHost ¶
func (b *InMemoryBackend) CreateDedicatedVMHost(in CreateDvhIn) (Resource, string, *APIError)
CreateDedicatedVMHost creates a host of one of the published DVH shapes.
func (*InMemoryBackend) CreateDhcpOptions ¶
func (b *InMemoryBackend) CreateDhcpOptions(in CreateDhcpOptionsIn) (Resource, string, *APIError)
CreateDhcpOptions creates a DHCP options set.
func (*InMemoryBackend) CreateDrg ¶
func (b *InMemoryBackend) CreateDrg(in CreateDrgIn) (Resource, string, *APIError)
CreateDrg creates a DRG with its default route tables and route distributions.
func (*InMemoryBackend) CreateDrgAttachment ¶
func (b *InMemoryBackend) CreateDrgAttachment(in CreateDrgAttachmentIn) (Resource, string, *APIError)
CreateDrgAttachment attaches a VCN to a DRG; each VCN attaches to at most one DRG.
func (*InMemoryBackend) CreateDrgNatPolicy ¶
func (b *InMemoryBackend) CreateDrgNatPolicy(in CreateDrgNatPolicyIn) (Resource, string, *APIError)
CreateDrgNatPolicy creates an empty policy.
func (*InMemoryBackend) CreateDrgRouteDistribution ¶
func (b *InMemoryBackend) CreateDrgRouteDistribution(in CreateDrgRouteDistributionIn) (Resource, string, *APIError)
CreateDrgRouteDistribution creates an import route distribution; the export one is created with the DRG.
func (*InMemoryBackend) CreateDrgRouteTable ¶
func (b *InMemoryBackend) CreateDrgRouteTable(in CreateDrgRouteTableIn) (Resource, string, *APIError)
CreateDrgRouteTable creates a DRG route table.
func (*InMemoryBackend) CreateImage ¶
func (b *InMemoryBackend) CreateImage(in CreateImageIn) (Resource, string, *APIError)
CreateImage captures a custom image from an instance's boot volume.
func (*InMemoryBackend) CreateInstanceConfiguration ¶
func (b *InMemoryBackend) CreateInstanceConfiguration(in CreateInstanceConfigurationIn) (Resource, string, *APIError)
CreateInstanceConfiguration stores a launch template, given directly or taken from an instance.
func (*InMemoryBackend) CreateInstanceConsoleConnection ¶
func (b *InMemoryBackend) CreateInstanceConsoleConnection(in CreateConsoleConnectionIn) (Resource, string, *APIError)
CreateInstanceConsoleConnection creates a console connection for a running or stopped instance.
func (*InMemoryBackend) CreateInstancePool ¶
func (b *InMemoryBackend) CreateInstancePool(in CreateInstancePoolIn) (Resource, string, *APIError)
CreateInstancePool creates a pool and launches its instances.
func (*InMemoryBackend) CreateInternetGateway ¶
func (b *InMemoryBackend) CreateInternetGateway(in CreateInternetGatewayIn) (Resource, string, *APIError)
CreateInternetGateway creates an internet gateway.
func (*InMemoryBackend) CreateIpv6 ¶
func (b *InMemoryBackend) CreateIpv6(in CreateIpv6In) (Resource, string, *APIError)
CreateIpv6 creates an IPv6 for a VNIC, or a reserved unassigned one for a subnet.
func (*InMemoryBackend) CreateLocalPeeringGateway ¶
func (b *InMemoryBackend) CreateLocalPeeringGateway(in CreateLpgIn) (Resource, string, *APIError)
CreateLocalPeeringGateway creates a local peering gateway.
func (*InMemoryBackend) CreateNatGateway ¶
func (b *InMemoryBackend) CreateNatGateway(in CreateNatGatewayIn) (Resource, string, *APIError)
CreateNatGateway creates a NAT gateway backed by a reserved or newly allocated public IP.
func (*InMemoryBackend) CreateNetworkSecurityGroup ¶
func (b *InMemoryBackend) CreateNetworkSecurityGroup(in CreateNsgIn) (Resource, string, *APIError)
CreateNetworkSecurityGroup creates an NSG.
func (*InMemoryBackend) CreatePrivateIP ¶
func (b *InMemoryBackend) CreatePrivateIP(in CreatePrivateIPIn) (Resource, string, *APIError)
CreatePrivateIP adds a secondary private IP to a VNIC, or reserves one in a subnet.
func (*InMemoryBackend) CreatePublicIP ¶
func (b *InMemoryBackend) CreatePublicIP(in CreatePublicIPIn) (Resource, string, *APIError)
CreatePublicIP allocates a reserved public IP, or an ephemeral one for a private IP.
func (*InMemoryBackend) CreatePublicIPPool ¶
func (b *InMemoryBackend) CreatePublicIPPool(in CreatePublicIPPoolIn) (Resource, string, *APIError)
CreatePublicIPPool creates an empty pool.
func (*InMemoryBackend) CreateRouteTable ¶
func (b *InMemoryBackend) CreateRouteTable(in CreateRouteTableIn) (Resource, string, *APIError)
CreateRouteTable creates a route table.
func (*InMemoryBackend) CreateSecurityList ¶
func (b *InMemoryBackend) CreateSecurityList(in CreateSecurityListIn) (Resource, string, *APIError)
CreateSecurityList creates a security list.
func (*InMemoryBackend) CreateServiceGateway ¶
func (b *InMemoryBackend) CreateServiceGateway(in CreateServiceGatewayIn) (Resource, string, *APIError)
CreateServiceGateway creates a service gateway.
func (*InMemoryBackend) CreateServiceNic ¶
func (b *InMemoryBackend) CreateServiceNic(in ServiceNicIn) (ServiceNic, error)
CreateServiceNic creates a VNIC without a public IP and returns its primary private IP.
func (*InMemoryBackend) CreateSubnet ¶
func (b *InMemoryBackend) CreateSubnet(in CreateSubnetIn) (Resource, string, *APIError)
CreateSubnet creates a subnet in a VCN.
func (*InMemoryBackend) CreateVcn ¶
func (b *InMemoryBackend) CreateVcn(in CreateVcnIn) (Resource, string, *APIError)
CreateVcn creates a VCN with its default route table, security list and DHCP options.
func (*InMemoryBackend) CreateVlan ¶
func (b *InMemoryBackend) CreateVlan(in CreateVlanIn) (Resource, string, *APIError)
CreateVlan creates a VLAN.
func (*InMemoryBackend) CreateVolume ¶
func (b *InMemoryBackend) CreateVolume(in CreateVolumeIn) (Resource, string, *APIError)
CreateVolume creates a block volume, optionally from a volume or backup.
func (*InMemoryBackend) CreateVolumeBackup ¶
func (b *InMemoryBackend) CreateVolumeBackup(in CreateVolumeBackupIn) (Resource, string, *APIError)
CreateVolumeBackup snapshots a volume; the first backup of a volume is always FULL.
func (*InMemoryBackend) CreateVolumeBackupPolicy ¶
func (b *InMemoryBackend) CreateVolumeBackupPolicy(in CreateVolumeBackupPolicyIn) (Resource, string, *APIError)
CreateVolumeBackupPolicy stores a user defined policy; its schedules are never executed.
func (*InMemoryBackend) CreateVolumeBackupPolicyAssignment ¶
func (b *InMemoryBackend) CreateVolumeBackupPolicyAssignment(in CreateAssignmentIn) (Resource, string, *APIError)
CreateVolumeBackupPolicyAssignment assigns a policy to a volume or boot volume (one policy per asset).
func (*InMemoryBackend) CreateVolumeGroup ¶
func (b *InMemoryBackend) CreateVolumeGroup(in CreateVolumeGroupIn) (Resource, string, *APIError)
CreateVolumeGroup creates a volume group from volumes, a volume group backup or another volume group.
func (*InMemoryBackend) CreateVolumeGroupBackup ¶
func (b *InMemoryBackend) CreateVolumeGroupBackup(in CreateVolumeGroupBackupIn) (Resource, string, *APIError)
CreateVolumeGroupBackup backs up every member of a volume group; the member backups share its lifecycle.
func (*InMemoryBackend) CreateVtap ¶
func (b *InMemoryBackend) CreateVtap(in CreateVtapIn) (Resource, string, *APIError)
CreateVtap creates a VTAP; mirroring itself is recorded, not performed.
func (*InMemoryBackend) DeleteByoasn ¶
func (b *InMemoryBackend) DeleteByoasn(id, ifMatch string) *APIError
DeleteByoasn deletes an ASN that no range originates from.
func (*InMemoryBackend) DeleteByoipRange ¶
func (b *InMemoryBackend) DeleteByoipRange(id, ifMatch string) (string, *APIError)
DeleteByoipRange removes a range that is not validating or advertised and has no sub-ranges or allocations.
func (*InMemoryBackend) DeleteComputeCapacityReservation ¶
func (b *InMemoryBackend) DeleteComputeCapacityReservation(id, ifMatch string) (string, *APIError)
DeleteComputeCapacityReservation deletes a reservation no instance uses.
func (*InMemoryBackend) DeleteComputeCluster ¶
func (b *InMemoryBackend) DeleteComputeCluster(id, ifMatch string) *APIError
DeleteComputeCluster deletes a cluster no instance belongs to.
func (*InMemoryBackend) DeleteConsoleHistory ¶
func (b *InMemoryBackend) DeleteConsoleHistory(id, ifMatch string) *APIError
DeleteConsoleHistory removes a console history.
func (*InMemoryBackend) DeleteDedicatedVMHost ¶
func (b *InMemoryBackend) DeleteDedicatedVMHost(id, ifMatch string) (string, *APIError)
DeleteDedicatedVMHost deletes a host that runs no instance.
func (*InMemoryBackend) DeleteDrgAttachment ¶
func (b *InMemoryBackend) DeleteDrgAttachment(id, ifMatch string) *APIError
DeleteDrgAttachment detaches a DRG attachment.
func (*InMemoryBackend) DeleteDrgNatPolicy ¶
func (b *InMemoryBackend) DeleteDrgNatPolicy(id, ifMatch string) (string, *APIError)
DeleteDrgNatPolicy deletes a policy no attachment references.
func (*InMemoryBackend) DeleteImage ¶
func (b *InMemoryBackend) DeleteImage(id, ifMatch string) *APIError
DeleteImage deletes a custom image; platform images cannot be deleted.
func (*InMemoryBackend) DeleteInstanceConfiguration ¶
func (b *InMemoryBackend) DeleteInstanceConfiguration(id, ifMatch string) *APIError
DeleteInstanceConfiguration deletes a configuration no pool uses.
func (*InMemoryBackend) DeleteInstanceConsoleConnection ¶
func (b *InMemoryBackend) DeleteInstanceConsoleConnection(id, ifMatch string) *APIError
DeleteInstanceConsoleConnection ends a console connection.
func (*InMemoryBackend) DeletePrivateIP ¶
func (b *InMemoryBackend) DeletePrivateIP(id, ifMatch string) *APIError
DeletePrivateIP deletes a secondary private IP.
func (*InMemoryBackend) DeletePublicIPPool ¶
func (b *InMemoryBackend) DeletePublicIPPool(id, ifMatch string) *APIError
DeletePublicIPPool deletes a pool that has no capacity.
func (*InMemoryBackend) DeleteServiceNic ¶
func (b *InMemoryBackend) DeleteServiceNic(vnicID string)
DeleteServiceNic terminates a VNIC made by CreateServiceNic; unknown ids are ignored.
func (*InMemoryBackend) DeleteVolumeBackupPolicy ¶
func (b *InMemoryBackend) DeleteVolumeBackupPolicy(id, ifMatch string) *APIError
DeleteVolumeBackupPolicy deletes a user defined policy that has no assignments.
func (*InMemoryBackend) DeleteVolumeBackupPolicyAssignment ¶
func (b *InMemoryBackend) DeleteVolumeBackupPolicyAssignment(id, ifMatch string) *APIError
DeleteVolumeBackupPolicyAssignment removes an assignment.
func (*InMemoryBackend) DetachBootVolume ¶
func (b *InMemoryBackend) DetachBootVolume(id, ifMatch string) *APIError
DetachBootVolume detaches a boot volume from a stopped instance.
func (*InMemoryBackend) DetachDrgNetwork ¶
func (b *InMemoryBackend) DetachDrgNetwork(attachmentID string)
DetachDrgNetwork removes an attachment registered by AttachDrgNetwork; unknown ids are ignored.
func (*InMemoryBackend) DetachLoadBalancer ¶
func (b *InMemoryBackend) DetachLoadBalancer( poolID, ifMatch string, in DetachLoadBalancerIn, ) (Resource, string, *APIError)
DetachLoadBalancer detaches a backend set from the pool and removes the pool's instances from it.
func (*InMemoryBackend) DetachPoolInstance ¶
func (b *InMemoryBackend) DetachPoolInstance(poolID, instID string, decrement, terminate bool) (string, *APIError)
DetachPoolInstance removes an instance from a pool, optionally shrinking the pool and terminating it.
func (*InMemoryBackend) DetachService ¶
func (b *InMemoryBackend) DetachService(id, ifMatch string, in ServiceIDIn) (Resource, string, *APIError)
DetachService removes a service from a service gateway.
func (*InMemoryBackend) DetachVnic ¶
func (b *InMemoryBackend) DetachVnic(id, ifMatch string) *APIError
DetachVnic detaches and deletes a secondary VNIC.
func (*InMemoryBackend) DetachVolume ¶
func (b *InMemoryBackend) DetachVolume(id, ifMatch string) *APIError
DetachVolume detaches a volume from an instance.
func (*InMemoryBackend) Fqdn ¶
func (b *InMemoryBackend) Fqdn(privateIPID string) string
Fqdn returns the fully qualified domain name of a private IP's hostname, or "" without a hostname label.
func (*InMemoryBackend) GetAllDrgAttachments ¶
func (b *InMemoryBackend) GetAllDrgAttachments( id, attType, token string, limit int, crossTenancy *bool, ) (page.Page[AttachmentInfo], *APIError)
GetAllDrgAttachments lists the live attachments of a DRG, including those of other tenancies.
func (*InMemoryBackend) GetDrgRedundancyStatus ¶
func (b *InMemoryBackend) GetDrgRedundancyStatus(id string) (DrgRedundancy, *APIError)
GetDrgRedundancyStatus derives the redundancy of a DRG from its live IPSec and virtual circuit attachments.
func (*InMemoryBackend) GetImage ¶
func (b *InMemoryBackend) GetImage(id string) (Resource, string, *APIError)
GetImage returns a platform or custom image.
func (*InMemoryBackend) GetNetworkingTopology ¶
func (b *InMemoryBackend) GetNetworkingTopology(compartment string) (TopologyOut, *APIError)
GetNetworkingTopology describes every VCN of a compartment.
func (*InMemoryBackend) GetPoolLoadBalancer ¶
func (b *InMemoryBackend) GetPoolLoadBalancer(poolID, id string) (PoolLoadBalancer, *APIError)
GetPoolLoadBalancer returns one attachment of a pool.
func (*InMemoryBackend) GetResourceIPInventory ¶
func (b *InMemoryBackend) GetResourceIPInventory(dataRequestID string) (InventoryOut, *APIError)
GetResourceIPInventory replays a stored ListIpInventory request against the current state.
func (*InMemoryBackend) GetService ¶
func (b *InMemoryBackend) GetService(id string) (Service, *APIError)
GetService returns one service.
func (*InMemoryBackend) GetSubnetCidrUtilization ¶
func (b *InMemoryBackend) GetSubnetCidrUtilization(id string) (CidrUtilizationOut, *APIError)
GetSubnetCidrUtilization reports how full each block of a subnet is.
func (*InMemoryBackend) GetSubnetIPInventory ¶
func (b *InMemoryBackend) GetSubnetIPInventory(id string) (SubnetInventoryOut, *APIError)
GetSubnetIPInventory lists every private IP and IPv6 address of a subnet with its owner.
func (*InMemoryBackend) GetSubnetTopology ¶
func (b *InMemoryBackend) GetSubnetTopology(compartment, subnetID string) (TopologyOut, *APIError)
GetSubnetTopology describes a subnet, its VCN, what it uses and what runs in it.
func (*InMemoryBackend) GetUpgradeStatus ¶
func (b *InMemoryBackend) GetUpgradeStatus(id string) (DrgUpgradeStatus, *APIError)
GetUpgradeStatus reports the DRG upgrade status; every DRG created here is already upgraded.
func (*InMemoryBackend) GetVcnDNSResolverAssociation ¶
func (b *InMemoryBackend) GetVcnDNSResolverAssociation(id string) (VcnDNSResolverAssociation, *APIError)
GetVcnDNSResolverAssociation returns the association between a VCN and its private DNS resolver.
func (*InMemoryBackend) GetVcnOverlap ¶
func (b *InMemoryBackend) GetVcnOverlap(id string, d OverlapDetails) (OverlapOut, string, *APIError)
GetVcnOverlap lists the VCNs of the selected compartments that overlap the CIDR blocks of one VCN.
func (*InMemoryBackend) GetVcnTopology ¶
func (b *InMemoryBackend) GetVcnTopology(compartment, vcnID string) (TopologyOut, *APIError)
GetVcnTopology describes a VCN, its contents and its DRG attachment.
func (*InMemoryBackend) GetVolumeBackupPolicy ¶
func (b *InMemoryBackend) GetVolumeBackupPolicy(id string) (Resource, string, *APIError)
GetVolumeBackupPolicy returns a predefined or user defined policy.
func (*InMemoryBackend) GetWindowsInstanceInitialCredentials ¶
func (b *InMemoryBackend) GetWindowsInstanceInitialCredentials(id string) (InstanceCredentials, *APIError)
GetWindowsInstanceInitialCredentials returns the initial credentials of a Windows instance.
func (*InMemoryBackend) GetWorkRequest ¶
func (b *InMemoryBackend) GetWorkRequest(id string) (WorkRequestWire, *APIError)
GetWorkRequest returns one work request.
func (*InMemoryBackend) InstanceAction ¶
func (b *InMemoryBackend) InstanceAction(id, action, ifMatch string) (Resource, string, *APIError)
InstanceAction applies a power action.
func (*InMemoryBackend) InstanceState ¶
func (b *InMemoryBackend) InstanceState(id string) (string, bool)
InstanceState returns the lifecycle state of an instance.
func (*InMemoryBackend) Ipv6VnicDetach ¶
func (b *InMemoryBackend) Ipv6VnicDetach(id, ifMatch string) (Resource, string, *APIError)
Ipv6VnicDetach unassigns a reserved IPv6 from its VNIC.
func (*InMemoryBackend) LaunchInstance ¶
func (b *InMemoryBackend) LaunchInstance(in LaunchInstanceIn) (Resource, string, *APIError)
LaunchInstance creates an instance with its boot volume and primary VNIC.
func (*InMemoryBackend) LaunchInstanceConfiguration ¶
func (b *InMemoryBackend) LaunchInstanceConfiguration( id string, override map[string]any, token string, ) (Resource, string, *APIError)
LaunchInstanceConfiguration launches an instance from a configuration, with optional overriding details.
func (*InMemoryBackend) LaunchWorker ¶
func (b *InMemoryBackend) LaunchWorker(sp WorkerSpec) (WorkerRef, error)
LaunchWorker launches an instance with the full LaunchInstance validation.
func (*InMemoryBackend) ListDrgRouteDistributionStatements ¶
func (b *InMemoryBackend) ListDrgRouteDistributionStatements( id, order, token string, limit int, ) (page.Page[DrgStatement], *APIError)
ListDrgRouteDistributionStatements lists statements by priority.
func (*InMemoryBackend) ListDrgRouteRules ¶
func (b *InMemoryBackend) ListDrgRouteRules( id, routeType, token string, limit int, ) (page.Page[DrgRuleWire], *APIError)
ListDrgRouteRules lists the static and learned rules of a DRG route table.
func (*InMemoryBackend) ListIPInventory ¶
func (b *InMemoryBackend) ListIPInventory(d InventoryDetails) (InventoryOut, string, *APIError)
ListIPInventory computes the inventory immediately and remembers the request under a data request id.
func (*InMemoryBackend) ListImages ¶
func (b *InMemoryBackend) ListImages(o ImageListOpts) (page.Page[Resource], *APIError)
ListImages lists platform images plus the custom images of a compartment.
func (*InMemoryBackend) ListIpv6s ¶
func (b *InMemoryBackend) ListIpv6s(o Ipv6ListOpts) (page.Page[Resource], *APIError)
ListIpv6s lists IPv6 addresses by subnet, VNIC, or address plus subnet.
func (*InMemoryBackend) ListNsgVnics ¶
ListNsgVnics lists the VNICs that are members of a network security group.
func (*InMemoryBackend) ListPolicyAssignments ¶
func (b *InMemoryBackend) ListPolicyAssignments(assetID, pageToken string, limit int) (page.Page[Resource], *APIError)
ListPolicyAssignments lists the policy assignments of an asset.
func (*InMemoryBackend) ListPrivateIPs ¶
func (b *InMemoryBackend) ListPrivateIPs(o PrivateIPListOpts) (page.Page[Resource], *APIError)
ListPrivateIPs lists private IPs by VNIC, or by subnet and address.
func (*InMemoryBackend) ListSecurityRules ¶
func (b *InMemoryBackend) ListSecurityRules(id string, o RuleListOpts) (page.Page[SecurityRule], *APIError)
ListSecurityRules lists the rules of an NSG.
func (*InMemoryBackend) ListServices ¶
ListServices lists the Oracle services available to service gateways.
func (*InMemoryBackend) ListShapes ¶
func (b *InMemoryBackend) ListShapes( compartment, imageID, name, pageToken string, limit int, ) (page.Page[Shape], *APIError)
ListShapes lists the compute shapes, optionally only those compatible with an image.
func (*InMemoryBackend) ListVcns ¶
func (b *InMemoryBackend) ListVcns() []VcnRef
ListVcns returns every live VCN, oldest first.
func (*InMemoryBackend) ListVolumeBackupPolicies ¶
func (b *InMemoryBackend) ListVolumeBackupPolicies( compartment, pageToken string, limit int, ) (page.Page[Resource], *APIError)
ListVolumeBackupPolicies lists the predefined policies plus the custom ones of a compartment.
func (*InMemoryBackend) ListWorkRequestErrors ¶
func (b *InMemoryBackend) ListWorkRequestErrors(id string) ([]WorkRequestError, *APIError)
ListWorkRequestErrors returns the errors of a work request; these operations never fail.
func (*InMemoryBackend) ListWorkRequestLogs ¶
func (b *InMemoryBackend) ListWorkRequestLogs( id, order, token string, limit int, ) (page.Page[WorkRequestEntry], *APIError)
ListWorkRequestLogs returns the log lines of a work request.
func (*InMemoryBackend) ListWorkRequests ¶
func (b *InMemoryBackend) ListWorkRequests( compartment, resourceID, token string, limit int, ) (page.Page[WorkRequestSummaryWire], *APIError)
ListWorkRequests lists the work requests of a compartment, newest first, optionally for one resource.
func (*InMemoryBackend) LookupImage ¶
func (b *InMemoryBackend) LookupImage(id string) (ImageRef, bool)
LookupImage returns a platform or custom image.
func (*InMemoryBackend) LookupNSG ¶
func (b *InMemoryBackend) LookupNSG(id string) (string, bool)
LookupNSG returns the VCN of a live network security group.
func (*InMemoryBackend) LookupSubnet ¶
func (b *InMemoryBackend) LookupSubnet(id string) (SubnetRef, bool)
LookupSubnet returns a live subnet.
func (*InMemoryBackend) ModifyIpv4SubnetCidr ¶
func (b *InMemoryBackend) ModifyIpv4SubnetCidr(id, ifMatch, original, updated string) (string, *APIError)
ModifyIpv4SubnetCidr replaces one IPv4 block of a subnet and returns the work request id.
func (*InMemoryBackend) ModifyVcnCidr ¶
func (b *InMemoryBackend) ModifyVcnCidr(id, ifMatch, original, updated string) (string, *APIError)
ModifyVcnCidr replaces one IPv4 CIDR block of a VCN and returns the work request id.
func (*InMemoryBackend) PublicIPByAddress ¶
func (b *InMemoryBackend) PublicIPByAddress(addr string) (Resource, string, *APIError)
PublicIPByAddress finds a public IP by its address.
func (*InMemoryBackend) RemoveDrgNatPolicy ¶
func (b *InMemoryBackend) RemoveDrgNatPolicy(id, ifMatch string) (Resource, string, *APIError)
RemoveDrgNatPolicy detaches the NAT policy from an attachment.
func (*InMemoryBackend) RemoveDrgNatRules ¶
func (b *InMemoryBackend) RemoveDrgNatRules(id, ifMatch string, ids []string) (string, *APIError)
RemoveDrgNatRules removes rules by id, all or none.
func (*InMemoryBackend) RemoveDrgRouteDistributionStatements ¶
func (b *InMemoryBackend) RemoveDrgRouteDistributionStatements(id string, ids []string) *APIError
RemoveDrgRouteDistributionStatements removes statements by id, all or nothing.
func (*InMemoryBackend) RemoveDrgRouteRules ¶
func (b *InMemoryBackend) RemoveDrgRouteRules(id string, ids []string) *APIError
RemoveDrgRouteRules removes static rules by id, all or nothing.
func (*InMemoryBackend) RemoveExportDrgRouteDistribution ¶
func (b *InMemoryBackend) RemoveExportDrgRouteDistribution(id, ifMatch string) (Resource, string, *APIError)
RemoveExportDrgRouteDistribution stops an attachment from advertising routes.
func (*InMemoryBackend) RemoveImportDrgRouteDistribution ¶
func (b *InMemoryBackend) RemoveImportDrgRouteDistribution(id, ifMatch string) (Resource, string, *APIError)
RemoveImportDrgRouteDistribution clears the import distribution of a DRG route table.
func (*InMemoryBackend) RemoveIpv4SubnetCidr ¶
func (b *InMemoryBackend) RemoveIpv4SubnetCidr(id, ifMatch, cidr string) (string, *APIError)
RemoveIpv4SubnetCidr removes an IPv4 block that holds no private IP and returns the work request id.
func (*InMemoryBackend) RemoveIpv6SubnetCidr ¶
func (b *InMemoryBackend) RemoveIpv6SubnetCidr(id, ifMatch, cidr string) (string, string, *APIError)
RemoveIpv6SubnetCidr removes an IPv6 prefix from a subnet; at least one must remain.
func (*InMemoryBackend) RemoveIpv6VcnCidr ¶
func (b *InMemoryBackend) RemoveIpv6VcnCidr(id, ifMatch, cidr string) (string, *APIError)
RemoveIpv6VcnCidr removes an IPv6 prefix that no subnet uses.
func (*InMemoryBackend) RemovePublicIPPoolCapacity ¶
func (b *InMemoryBackend) RemovePublicIPPoolCapacity(id, ifMatch, cidr string) (Resource, string, *APIError)
RemovePublicIPPoolCapacity removes a sub-range that has no reserved public IPs.
func (*InMemoryBackend) RemoveSecurityRules ¶
func (b *InMemoryBackend) RemoveSecurityRules(id string, ids []string) *APIError
RemoveSecurityRules removes NSG rules by id; either all are removed or none.
func (*InMemoryBackend) RemoveVcnCidr ¶
func (b *InMemoryBackend) RemoveVcnCidr(id, ifMatch, cidr string) (string, *APIError)
RemoveVcnCidr removes an IPv4 CIDR block that no subnet uses and returns the work request id.
func (*InMemoryBackend) Reset ¶
func (b *InMemoryBackend) Reset()
Reset clears all state and the registered API keys.
func (*InMemoryBackend) Restore ¶
func (b *InMemoryBackend) Restore(ctx context.Context, data []byte) error
Restore loads backend state from a snapshot.
func (*InMemoryBackend) SetClock ¶
func (b *InMemoryBackend) SetClock(now func() time.Time)
SetClock injects the time source used for lifecycle transitions.
func (*InMemoryBackend) SetCompartmentChecker ¶
func (b *InMemoryBackend) SetCompartmentChecker(fn func(string) bool)
SetCompartmentChecker makes compartmentId arguments validated against another service (OCI Identity).
func (*InMemoryBackend) SetDNSResolverLookup ¶
func (b *InMemoryBackend) SetDNSResolverLookup(fn func(vcnID string) (string, bool))
SetDNSResolverLookup resolves the private resolver of a VCN from OCI DNS.
func (*InMemoryBackend) SetKeyChecker ¶
func (b *InMemoryBackend) SetKeyChecker(fn func(id string) (string, bool))
SetKeyChecker makes kmsKeyId arguments validated against OCI Vault: fn returns the key's lifecycle state.
func (*InMemoryBackend) SetLoadBalancerClient ¶
func (b *InMemoryBackend) SetLoadBalancerClient(c LoadBalancerClient)
SetLoadBalancerClient wires instance pool load balancer attachments to OCI Load Balancer; nil unwires them.
func (*InMemoryBackend) SetOriginAsn ¶
func (b *InMemoryBackend) SetOriginAsn(id, ifMatch string, in SetOriginAsnIn) (string, *APIError)
SetOriginAsn makes a BYOASN the BGP origin of a range that is not being advertised.
func (*InMemoryBackend) SetOriginAsnToOracle ¶
func (b *InMemoryBackend) SetOriginAsnToOracle(id, ifMatch string) *APIError
SetOriginAsnToOracle returns the origin of a range to Oracle's ASN.
func (*InMemoryBackend) SetServiceNicNsgs ¶
func (b *InMemoryBackend) SetServiceNicNsgs(vnicID string, nsgIDs []string) error
SetServiceNicNsgs replaces the network security groups of a VNIC made by CreateServiceNic.
func (*InMemoryBackend) SetTagLookup ¶
func (b *InMemoryBackend) SetTagLookup(fn ocitags.Lookup)
SetTagLookup wires defined-tag validation against a tag namespace source (OCI Identity); nil accepts any namespace.
func (*InMemoryBackend) Snapshot ¶
func (b *InMemoryBackend) Snapshot(ctx context.Context) []byte
Snapshot serialises the backend state, including registered API keys.
func (*InMemoryBackend) Sweep ¶
func (b *InMemoryBackend) Sweep()
Sweep applies due lifecycle transitions and purges long-terminated resources.
func (*InMemoryBackend) SyncLoadBalancers ¶
func (b *InMemoryBackend) SyncLoadBalancers(ctx context.Context) error
SyncLoadBalancers makes the backend sets of every attached load balancer match the pools' instances. It calls the load balancer without holding the backend lock, and stops when ctx is done or the backend is closed.
func (*InMemoryBackend) TerminateInstance ¶
func (b *InMemoryBackend) TerminateInstance(id, ifMatch string, preserveBoot bool) *APIError
TerminateInstance starts termination of an instance and releases everything attached to it.
func (*InMemoryBackend) TerminateInstancePool ¶
func (b *InMemoryBackend) TerminateInstancePool(id, ifMatch string) *APIError
TerminateInstancePool terminates the pool and its instances.
func (*InMemoryBackend) TerminateInstanceWith ¶
func (b *InMemoryBackend) TerminateInstanceWith(id, ifMatch string, o TerminateOpts) *APIError
TerminateInstanceWith terminates an instance; data volumes created at launch survive unless told otherwise.
func (*InMemoryBackend) TerminateWorker ¶
func (b *InMemoryBackend) TerminateWorker(id string) error
TerminateWorker terminates a launched worker; an instance that is already gone is not an error.
func (*InMemoryBackend) UpdateBootVolume ¶
func (b *InMemoryBackend) UpdateBootVolume(id, ifMatch string, in UpdateVolumeIn) (Resource, string, *APIError)
UpdateBootVolume changes a boot volume.
func (*InMemoryBackend) UpdateBootVolumeBackup ¶
func (b *InMemoryBackend) UpdateBootVolumeBackup( id, ifMatch string, in UpdateBootVolumeBackupIn, ) (Resource, string, *APIError)
UpdateBootVolumeBackup changes a boot volume backup's name, tags, key and retention settings.
func (*InMemoryBackend) UpdateByoasn ¶
func (b *InMemoryBackend) UpdateByoasn(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
UpdateByoasn changes the name and tags of a BYOASN.
func (*InMemoryBackend) UpdateByoipRange ¶
func (b *InMemoryBackend) UpdateByoipRange(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
UpdateByoipRange changes the name and tags of a range.
func (*InMemoryBackend) UpdateCaptureFilter ¶
func (b *InMemoryBackend) UpdateCaptureFilter( id, ifMatch string, in UpdateCaptureFilterIn, ) (Resource, string, *APIError)
UpdateCaptureFilter renames a filter or replaces its rules.
func (*InMemoryBackend) UpdateComputeCapacityReservation ¶
func (b *InMemoryBackend) UpdateComputeCapacityReservation( id, ifMatch string, in UpdateReservationIn, ) (Resource, string, *APIError)
UpdateComputeCapacityReservation renames a reservation or replaces its configurations.
func (*InMemoryBackend) UpdateComputeCluster ¶
func (b *InMemoryBackend) UpdateComputeCluster( id, ifMatch string, in UpdateComputeClusterIn, ) (Resource, string, *APIError)
UpdateComputeCluster changes the name, tags and placement constraint of a cluster.
func (*InMemoryBackend) UpdateConsoleHistory ¶
func (b *InMemoryBackend) UpdateConsoleHistory(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
UpdateConsoleHistory renames a console history or changes its tags.
func (*InMemoryBackend) UpdateDedicatedVMHost ¶
func (b *InMemoryBackend) UpdateDedicatedVMHost(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
UpdateDedicatedVMHost changes the name and tags of a host.
func (*InMemoryBackend) UpdateDhcpOptions ¶
func (b *InMemoryBackend) UpdateDhcpOptions(id, ifMatch string, in UpdateDhcpOptionsIn) (Resource, string, *APIError)
UpdateDhcpOptions changes a DHCP options set.
func (*InMemoryBackend) UpdateDrg ¶
func (b *InMemoryBackend) UpdateDrg(id, ifMatch string, in UpdateDrgIn) (Resource, string, *APIError)
UpdateDrg changes a DRG's name, tags and default route tables.
func (*InMemoryBackend) UpdateDrgAttachment ¶
func (b *InMemoryBackend) UpdateDrgAttachment( id, ifMatch string, in UpdateDrgAttachmentIn, ) (Resource, string, *APIError)
UpdateDrgAttachment changes an attachment's name, tags, DRG route table, export distribution and VCN route settings.
func (*InMemoryBackend) UpdateDrgNatPolicy ¶
func (b *InMemoryBackend) UpdateDrgNatPolicy(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
UpdateDrgNatPolicy changes the name and tags of a policy.
func (*InMemoryBackend) UpdateDrgNatRules ¶
func (b *InMemoryBackend) UpdateDrgNatRules(id, ifMatch string, rules []DrgNatRuleIn) (string, *APIError)
UpdateDrgNatRules changes rules by id, all or none.
func (*InMemoryBackend) UpdateDrgRouteDistribution ¶
func (b *InMemoryBackend) UpdateDrgRouteDistribution(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
UpdateDrgRouteDistribution changes a route distribution's name and tags.
func (*InMemoryBackend) UpdateDrgRouteDistributionStatements ¶
func (b *InMemoryBackend) UpdateDrgRouteDistributionStatements( id string, in UpdateDrgStatementsIn, ) ([]DrgStatement, *APIError)
UpdateDrgRouteDistributionStatements changes statements by id, all or nothing.
func (*InMemoryBackend) UpdateDrgRouteRules ¶
func (b *InMemoryBackend) UpdateDrgRouteRules(id string, in UpdateDrgRulesIn) ([]DrgRuleWire, *APIError)
UpdateDrgRouteRules changes static rules by id, all or nothing.
func (*InMemoryBackend) UpdateDrgRouteTable ¶
func (b *InMemoryBackend) UpdateDrgRouteTable( id, ifMatch string, in UpdateDrgRouteTableIn, ) (Resource, string, *APIError)
UpdateDrgRouteTable changes a DRG route table.
func (*InMemoryBackend) UpdateImage ¶
func (b *InMemoryBackend) UpdateImage(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
UpdateImage changes a custom image.
func (*InMemoryBackend) UpdateInstance ¶
func (b *InMemoryBackend) UpdateInstance(id, ifMatch string, in UpdateInstanceIn) (Resource, string, *APIError)
UpdateInstance changes an instance; a different shape or shape configuration needs a stopped instance.
func (*InMemoryBackend) UpdateInstanceConfiguration ¶
func (b *InMemoryBackend) UpdateInstanceConfiguration(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
UpdateInstanceConfiguration changes the name and tags of a configuration.
func (*InMemoryBackend) UpdateInstanceConsoleConnection ¶
func (b *InMemoryBackend) UpdateInstanceConsoleConnection( id, ifMatch string, in UpdateConsoleIn, ) (Resource, string, *APIError)
UpdateInstanceConsoleConnection changes the tags of a console connection.
func (*InMemoryBackend) UpdateInstancePool ¶
func (b *InMemoryBackend) UpdateInstancePool( id, ifMatch string, in UpdateInstancePoolIn, ) (Resource, string, *APIError)
UpdateInstancePool changes the size, configuration, placement and formatters of a pool.
func (*InMemoryBackend) UpdateInternetGateway ¶
func (b *InMemoryBackend) UpdateInternetGateway( id, ifMatch string, in UpdateInternetGatewayIn, ) (Resource, string, *APIError)
UpdateInternetGateway changes an internet gateway.
func (*InMemoryBackend) UpdateIpv6 ¶
func (b *InMemoryBackend) UpdateIpv6(id, ifMatch string, in UpdateIpv6In) (Resource, string, *APIError)
UpdateIpv6 renames an IPv6, moves it to another VNIC of the same subnet, or changes its lifetime or route table.
func (*InMemoryBackend) UpdateLocalPeeringGateway ¶
func (b *InMemoryBackend) UpdateLocalPeeringGateway(id, ifMatch string, in UpdateLpgIn) (Resource, string, *APIError)
UpdateLocalPeeringGateway changes a local peering gateway.
func (*InMemoryBackend) UpdateNatGateway ¶
func (b *InMemoryBackend) UpdateNatGateway(id, ifMatch string, in UpdateNatGatewayIn) (Resource, string, *APIError)
UpdateNatGateway changes a NAT gateway.
func (*InMemoryBackend) UpdateNetworkSecurityGroup ¶
func (b *InMemoryBackend) UpdateNetworkSecurityGroup(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
UpdateNetworkSecurityGroup changes an NSG's name and tags.
func (*InMemoryBackend) UpdatePrivateIP ¶
func (b *InMemoryBackend) UpdatePrivateIP(id, ifMatch string, in UpdatePrivateIPIn) (Resource, string, *APIError)
UpdatePrivateIP changes a private IP, or moves it to another VNIC of the same subnet.
func (*InMemoryBackend) UpdatePublicIP ¶
func (b *InMemoryBackend) UpdatePublicIP(id, ifMatch string, in UpdatePublicIPIn) (Resource, string, *APIError)
UpdatePublicIP changes a public IP's name and tags, and assigns, moves or unassigns a reserved one.
func (*InMemoryBackend) UpdatePublicIPPool ¶
func (b *InMemoryBackend) UpdatePublicIPPool(id, ifMatch string, in UpdateIn) (Resource, string, *APIError)
UpdatePublicIPPool changes the name and tags of a pool.
func (*InMemoryBackend) UpdateRouteTable ¶
func (b *InMemoryBackend) UpdateRouteTable(id, ifMatch string, in UpdateRouteTableIn) (Resource, string, *APIError)
UpdateRouteTable changes a route table; routeRules replaces the whole list.
func (*InMemoryBackend) UpdateSecurityList ¶
func (b *InMemoryBackend) UpdateSecurityList( id, ifMatch string, in UpdateSecurityListIn, ) (Resource, string, *APIError)
UpdateSecurityList changes a security list; rule lists replace the existing ones.
func (*InMemoryBackend) UpdateSecurityRules ¶
func (b *InMemoryBackend) UpdateSecurityRules(id string, in SecurityRulesIn) (SecurityRulesOut, *APIError)
UpdateSecurityRules replaces existing NSG rules by id; either all are updated or none.
func (*InMemoryBackend) UpdateServiceGateway ¶
func (b *InMemoryBackend) UpdateServiceGateway( id, ifMatch string, in UpdateServiceGatewayIn, ) (Resource, string, *APIError)
UpdateServiceGateway changes a service gateway; services replaces the attached list.
func (*InMemoryBackend) UpdateSubnet ¶
func (b *InMemoryBackend) UpdateSubnet(id, ifMatch string, in UpdateSubnetIn) (Resource, string, *APIError)
UpdateSubnet changes a subnet's name, tags, associations and CIDR blocks.
func (*InMemoryBackend) UpdateVcn ¶
func (b *InMemoryBackend) UpdateVcn(id, ifMatch string, in UpdateVcnIn) (Resource, string, *APIError)
UpdateVcn changes a VCN's name and tags.
func (*InMemoryBackend) UpdateVlan ¶
func (b *InMemoryBackend) UpdateVlan(id, ifMatch string, in UpdateVlanIn) (Resource, string, *APIError)
UpdateVlan changes the name, tags, NSGs, route table and CIDR block of a VLAN.
func (*InMemoryBackend) UpdateVnic ¶
func (b *InMemoryBackend) UpdateVnic(id, ifMatch string, in UpdateVnicIn) (Resource, string, *APIError)
UpdateVnic changes a VNIC.
func (*InMemoryBackend) UpdateVolume ¶
func (b *InMemoryBackend) UpdateVolume(id, ifMatch string, in UpdateVolumeIn) (Resource, string, *APIError)
UpdateVolume changes a volume; the size can only grow.
func (*InMemoryBackend) UpdateVolumeAttachment ¶
func (b *InMemoryBackend) UpdateVolumeAttachment( id, ifMatch string, in UpdateVolumeAttachmentIn, ) (Resource, string, *APIError)
UpdateVolumeAttachment sets the iSCSI login state of an attached iSCSI volume attachment.
func (*InMemoryBackend) UpdateVolumeBackup ¶
func (b *InMemoryBackend) UpdateVolumeBackup( id, ifMatch string, in UpdateVolumeBackupIn, ) (Resource, string, *APIError)
UpdateVolumeBackup changes a backup's name, tags and retention settings.
func (*InMemoryBackend) UpdateVolumeBackupPolicy ¶
func (b *InMemoryBackend) UpdateVolumeBackupPolicy( id, ifMatch string, in UpdateVolumeBackupPolicyIn, ) (Resource, string, *APIError)
UpdateVolumeBackupPolicy changes a user defined policy.
func (*InMemoryBackend) UpdateVolumeGroup ¶
func (b *InMemoryBackend) UpdateVolumeGroup(id, ifMatch string, in UpdateVolumeGroupIn) (Resource, string, *APIError)
UpdateVolumeGroup renames a group or replaces its set of volumes.
func (*InMemoryBackend) UpdateVolumeGroupBackup ¶
func (b *InMemoryBackend) UpdateVolumeGroupBackup( id, ifMatch string, in UpdateVolumeGroupBackupIn, ) (Resource, string, *APIError)
UpdateVolumeGroupBackup changes a group backup's name, tags and retention settings; members follow retention.
func (*InMemoryBackend) UpdateVtap ¶
func (b *InMemoryBackend) UpdateVtap(id, ifMatch string, in UpdateVtapIn) (Resource, string, *APIError)
UpdateVtap changes the endpoints, filter and tuning of a VTAP.
func (*InMemoryBackend) UpgradeDrg ¶
func (b *InMemoryBackend) UpgradeDrg(id string) (string, *APIError)
UpgradeDrg refuses to upgrade a DRG that already has per-attachment route tables.
func (*InMemoryBackend) ValidateByoasn ¶
func (b *InMemoryBackend) ValidateByoasn(id, ifMatch string) (string, *APIError)
ValidateByoasn records the ownership check and activates the ASN.
func (*InMemoryBackend) ValidateByoipRange ¶
func (b *InMemoryBackend) ValidateByoipRange(id, ifMatch string) (string, *APIError)
ValidateByoipRange records the ownership check; the RIR is never contacted.
func (*InMemoryBackend) VcnExists ¶
func (b *InMemoryBackend) VcnExists(id string) bool
VcnExists reports whether a live VCN has the id.
func (*InMemoryBackend) WithdrawByoipRange ¶
func (b *InMemoryBackend) WithdrawByoipRange(id, ifMatch string) *APIError
WithdrawByoipRange records the end of the advertisement.
type IngressRule ¶
type IngressRule struct {
IcmpOptions *IcmpOptions `json:"icmpOptions,omitempty"`
TCPOptions *PortOptions `json:"tcpOptions,omitempty"`
UDPOptions *PortOptions `json:"udpOptions,omitempty"`
IsStateless *bool `json:"isStateless,omitempty"`
Protocol string `json:"protocol"`
Source string `json:"source"`
SourceType string `json:"sourceType,omitempty"`
Description string `json:"description,omitempty"`
}
IngressRule is a security list ingress rule.
type Instance ¶
type Instance struct {
Metadata map[string]string `json:"metadata"`
InstanceOptions map[string]any `json:"instanceOptions,omitempty"`
AvailabilityConfig map[string]any `json:"availabilityConfig,omitempty"`
LaunchOptions map[string]any `json:"launchOptions,omitempty"`
AgentConfig map[string]any `json:"agentConfig,omitempty"`
ExtendedMetadata map[string]any `json:"extendedMetadata"`
ShapeConfig *InstanceShapeConfig `json:"shapeConfig,omitempty"`
SourceDetails *SourceDetails `json:"sourceDetails,omitempty"`
PlatformConfig *PlatformConfig `json:"platformConfig,omitempty"`
PreemptibleInstanceConfig *PreemptibleIn `json:"preemptibleInstanceConfig,omitempty"`
Base
Region string `json:"region"`
LaunchMode string `json:"launchMode"`
ImageID string `json:"imageId,omitempty"`
Shape string `json:"shape"`
FaultDomain string `json:"faultDomain"`
AvailabilityDomain string `json:"availabilityDomain"`
CapacityReservationID string `json:"capacityReservationId,omitempty"`
DedicatedVMHostID string `json:"dedicatedVmHostId,omitempty"`
ComputeClusterID string `json:"computeClusterId,omitempty"`
}
Instance is a compute instance; only its control plane state exists.
type InstanceConfiguration ¶
InstanceConfiguration is a reusable launch template; instanceDetails is kept as the client sent it.
type InstanceConsoleConnection ¶
type InstanceConsoleConnection struct {
Base
InstanceID string `json:"instanceId"`
Fingerprint string `json:"fingerprint"`
ConnectionString string `json:"connectionString"`
}
InstanceConsoleConnection is a console connection of an instance; no console is served behind it.
type InstanceCredentials ¶
type InstanceCredentials struct {
Password string `json:"password"`
Username string `json:"username"`
}
InstanceCredentials is the initial login of a Windows instance.
type InstancePool ¶
type InstancePool struct {
Base
InstanceConfigurationID string `json:"instanceConfigurationId"`
DisplayNameFormatter string `json:"instanceDisplayNameFormatter,omitempty"`
HostnameFormatter string `json:"instanceHostnameFormatter,omitempty"`
Placements []PoolPlacement `json:"placementConfigurations"`
Members []string `json:"members,omitempty"`
LoadBalancers []PoolLoadBalancer `json:"loadBalancers,omitempty"`
Size int `json:"size"`
CurrentSize int `json:"currentSize"`
LaunchCount int `json:"launchCount,omitempty"`
}
InstancePool keeps a number of instances launched from an instance configuration.
type InstanceShapeConfig ¶
type InstanceShapeConfig struct {
ProcessorDescription string `json:"processorDescription,omitempty"`
Ocpus float64 `json:"ocpus"`
MemoryInGBs float64 `json:"memoryInGBs"`
Vcpus int `json:"vcpus"`
NetworkingBandwidthInGbps float64 `json:"networkingBandwidthInGbps"`
MaxVnicAttachments int `json:"maxVnicAttachments"`
}
InstanceShapeConfig is the resolved shape configuration of an instance.
type Internal ¶
type Internal struct {
ExpireAt *time.Time `json:"expireAt,omitempty"`
TimeDeleted *time.Time `json:"timeDeleted,omitempty"`
UnattachedSince *time.Time `json:"unattachedSince,omitempty"`
TransitionAt *time.Time `json:"transitionAt,omitempty"`
ScheduleRuns map[int]time.Time `json:"scheduleRuns,omitempty"`
LaunchInstanceID string `json:"launchInstanceId,omitempty"`
DetailsNext string `json:"detailsNext,omitempty"`
PoolID string `json:"poolId,omitempty"`
InitialPassword string `json:"initialPassword,omitempty"`
Etag string `json:"etag"`
NextState string `json:"nextState,omitempty"`
Arch string `json:"arch,omitempty"`
Socket int `json:"socket,omitempty"`
Seq int64 `json:"seq"`
}
Internal is bookkeeping that never reaches the wire.
type InternetGateway ¶
type InternetGateway struct {
Base
VcnID string `json:"vcnId"`
RouteTableID string `json:"routeTableId,omitempty"`
IsEnabled bool `json:"isEnabled"`
}
InternetGateway is an internet gateway.
type InventoryDetails ¶
type InventoryDetails struct {
Utilization *float64 `json:"utilization"`
OverlappingVcnsOnly *bool `json:"overlappingVcnsOnly"`
OverrideFilters *bool `json:"overrideFilters"`
PaginationOffset *int `json:"paginationOffset"`
PaginationLimit *int `json:"paginationLimit"`
SearchKeyword string `json:"searchKeyword"`
SortBy string `json:"sortBy"`
SortOrder string `json:"sortOrder"`
RegionList []string `json:"regionList"`
CompartmentList []string `json:"compartmentList"`
AddressTypeList []string `json:"addressTypeList"`
ResourceTypeList []string `json:"resourceTypeList"`
}
InventoryDetails is the ListIpInventory request body.
type InventoryOut ¶
type InventoryOut struct {
LastUpdatedTimestamp time.Time `json:"lastUpdatedTimestamp"`
Message string `json:"message,omitempty"`
InventoryVcnCollection []invVcn `json:"inventoryVcnCollection"`
Count int `json:"count"`
CompartmentsPerTenant int `json:"compartmentsPerTenant"`
}
InventoryOut is the IpInventoryCollection response.
type Ipv6 ¶
type Ipv6 struct {
CidrPrefixLength *int `json:"cidrPrefixLength,omitempty"`
Base
IPAddress string `json:"ipAddress"`
SubnetID string `json:"subnetId"`
VnicID string `json:"vnicId,omitempty"`
IPState string `json:"ipState"`
Lifetime string `json:"lifetime"`
RouteTableID string `json:"routeTableId,omitempty"`
Hostname string `json:"hostname,omitempty"`
}
Ipv6 is an IPv6 address inside a subnet's /64.
type Ipv6ListOpts ¶
Ipv6ListOpts holds the ListIpv6s filters.
type Ipv6Pair ¶
type Ipv6Pair struct {
Ipv6ID string `json:"ipv6Id"`
Ipv6SubnetCidr string `json:"ipv6SubnetCidr"`
Ipv6Address string `json:"ipv6Address"`
}
Ipv6Pair asks for an IPv6 on a new VNIC: an existing reserved one, an address, or any address of a prefix.
type KmsKeyOut ¶
type KmsKeyOut struct {
KmsKeyID *string `json:"kmsKeyId"`
}
KmsKeyOut is the VolumeKmsKey and BootVolumeKmsKey response.
type LaunchCreateVolumeIn ¶
type LaunchCreateVolumeIn struct {
VpusPerGB *int64 `json:"vpusPerGB"`
SizeInGBs *int64 `json:"sizeInGBs"`
VolumeCreationType string `json:"volumeCreationType"`
CompartmentID string `json:"compartmentId"`
DisplayName string `json:"displayName"`
KmsKeyID string `json:"kmsKeyId"`
}
LaunchCreateVolumeIn is launchCreateVolumeDetails of a launch volume attachment.
type LaunchInstanceIn ¶
type LaunchInstanceIn struct {
TagsIn
AgentConfig map[string]any `json:"agentConfig"`
ShapeConfig *ShapeConfigIn `json:"shapeConfig"`
SourceDetails *SourceDetails `json:"sourceDetails"`
Metadata map[string]string `json:"metadata"`
ExtendedMetadata map[string]any `json:"extendedMetadata"`
PlatformConfig *PlatformConfig `json:"platformConfig"`
LaunchOptions map[string]any `json:"launchOptions"`
AvailabilityConfig map[string]any `json:"availabilityConfig"`
InstanceOptions map[string]any `json:"instanceOptions"`
CreateVnicDetails *CreateVnicIn `json:"createVnicDetails"`
Preemptible *PreemptibleIn `json:"preemptibleInstanceConfig"`
PlacementIn
AvailabilityDomain string `json:"availabilityDomain"`
HostnameLabel string `json:"hostnameLabel"`
ImageID string `json:"imageId"`
Shape string `json:"shape"`
SubnetID string `json:"subnetId"`
FaultDomain string `json:"faultDomain"`
DisplayName string `json:"displayName"`
CompartmentID string `json:"compartmentId"`
LaunchVolumeAttachments []LaunchVolumeIn `json:"launchVolumeAttachments"`
}
LaunchInstanceIn is the LaunchInstance request body.
type LaunchVolumeIn ¶
type LaunchVolumeIn struct {
CreateVolume *LaunchCreateVolumeIn `json:"launchCreateVolumeDetails"`
IsReadOnly *bool `json:"isReadOnly"`
UseChap *bool `json:"useChap"`
IsAgentAutoIscsiLoginEnabled *bool `json:"isAgentAutoIscsiLoginEnabled"`
IsPvEncryptionInTransit *bool `json:"isPvEncryptionInTransitEnabled"`
Type string `json:"type"`
Device string `json:"device"`
DisplayName string `json:"displayName"`
VolumeID string `json:"volumeId"`
}
LaunchVolumeIn is one launchVolumeAttachments entry of LaunchInstance.
type ListOpts ¶
type ListOpts struct {
Match func(Resource) bool
Compartment string
DisplayName string
State string
VcnID string
SortBy string
Order string
Page string
Limit int
// AnyCompartment skips the compartment filter for lists scoped by another parent (a DRG).
AnyCompartment bool
}
ListOpts carries the shared list query parameters.
type LoadBalancerClient ¶
type LoadBalancerClient interface {
// HasBackendSet reports whether the load balancer exists and has the backend set.
HasBackendSet(lbID, set string) bool
// ApplyBackends applies every change in one load balancer update. It wraps ErrTargetGone when the load
// balancer or a backend set is missing. Adding an existing backend or removing a missing one is not an error.
ApplyBackends(lbID string, changes []BackendChange) error
}
LoadBalancerClient is the part of OCI Load Balancer that instance pools use.
type LocalPeeringGateway ¶
type LocalPeeringGateway struct {
Base
VcnID string `json:"vcnId"`
PeerID string `json:"peerId,omitempty"`
PeeringStatus string `json:"peeringStatus"`
PeeringStatusDetails string `json:"peeringStatusDetails,omitempty"`
PeerAdvertisedCidr string `json:"peerAdvertisedCidr,omitempty"`
RouteTableID string `json:"routeTableId,omitempty"`
PeerAdvertisedDetails []string `json:"peerAdvertisedCidrDetails,omitempty"`
IsCrossTenancyPeering bool `json:"isCrossTenancyPeering"`
}
LocalPeeringGateway is a local peering gateway.
type MemOpts ¶
type MemOpts struct {
MinInGBs float64 `json:"minInGBs"`
MaxInGBs float64 `json:"maxInGBs"`
DefaultPerOcpuInGBs float64 `json:"defaultPerOcpuInGBs"`
MinPerOcpuInGBs float64 `json:"minPerOcpuInGBs"`
MaxPerOcpuInGBs float64 `json:"maxPerOcpuInGBs"`
}
MemOpts are the memory options of a flexible shape.
type MemberReplica ¶
type MemberReplica struct {
VolumeReplicaID string `json:"volumeReplicaId"`
MembershipState string `json:"membershipState,omitempty"`
}
MemberReplica names one volume or boot volume replica of a volume group replica.
type NSGRule ¶
type NSGRule struct {
NsgID string `json:"nsgId"`
SecurityRule
Seq int64 `json:"seq"`
}
NSGRule is a stored network security group rule.
type NatGateway ¶
type NatGateway struct {
Base
VcnID string `json:"vcnId"`
NatIP string `json:"natIp"`
PublicIPID string `json:"publicIpId,omitempty"`
RouteTableID string `json:"routeTableId,omitempty"`
BlockTraffic bool `json:"blockTraffic"`
}
NatGateway is a NAT gateway.
type NetworkSecurityGroup ¶
NetworkSecurityGroup is a network security group.
type NsgVnic ¶
type NsgVnic struct {
TimeAssociated time.Time `json:"timeAssociated"`
VnicID string `json:"vnicId"`
ResourceID string `json:"resourceId"`
}
NsgVnic is one entry of ListNetworkSecurityGroupVnics.
type OriginAsn ¶
type OriginAsn struct {
ByoasnID string `json:"byoasnId,omitempty"`
Asn int64 `json:"asn"`
AsPathPrependLength int `json:"asPathPrependLength,omitempty"`
}
OriginAsn is the BGP origin of a BYOIP range.
type OverlapDetails ¶
type OverlapDetails struct {
RegionList []string `json:"regionList"`
CompartmentList []string `json:"compartmentList"`
}
OverlapDetails is the GetVcnOverlap request body.
type OverlapItem ¶
type OverlapItem struct {
OverlappingVcnID string `json:"overlappingVcnId"`
OverlappingVcnName string `json:"overlappingVcnName"`
OverlappingCidr string `json:"overlappingCidr"`
Cidr string `json:"cidr"`
}
OverlapItem is one overlapping VCN CIDR pair.
type OverlapOut ¶
type OverlapOut struct {
LastUpdatedTimestamp time.Time `json:"lastUpdatedTimestamp"`
Message string `json:"message,omitempty"`
Items []OverlapItem `json:"ipInventoryVcnOverlapSummary"`
OverlapCount int `json:"overlapCount"`
}
OverlapOut is the IpInventoryVcnOverlapCollection response.
type PeerClass ¶
type PeerClass int
PeerClass is how ClassifyPeer saw a source address.
const ( // PeerUnknown means no VNIC in the emulator owns the address. PeerUnknown PeerClass = iota // PeerOtherVCN means the source VNIC is in a different VCN than the destination. PeerOtherVCN // PeerAllowed means the security lists and NSGs of both VNICs permit the flow. PeerAllowed // PeerDenied means they do not. PeerDenied )
type PlacementIn ¶
type PlacementIn struct {
CapacityReservationID string `json:"capacityReservationId"`
DedicatedVMHostID string `json:"dedicatedVmHostId"`
ComputeClusterID string `json:"computeClusterId"`
}
PlacementIn names the placement resources of a launch.
type PlatformConfig ¶
type PlatformConfig struct {
IsSecureBootEnabled *bool `json:"isSecureBootEnabled,omitempty"`
IsTrustedPlatformModuleEnabled *bool `json:"isTrustedPlatformModuleEnabled,omitempty"`
IsMeasuredBootEnabled *bool `json:"isMeasuredBootEnabled,omitempty"`
IsMemoryEncryptionEnabled *bool `json:"isMemoryEncryptionEnabled,omitempty"`
IsSymmetricMultiThreadingEnabled *bool `json:"isSymmetricMultiThreadingEnabled,omitempty"`
IsAccessControlServiceEnabled *bool `json:"isAccessControlServiceEnabled,omitempty"`
AreVirtualInstructionsEnabled *bool `json:"areVirtualInstructionsEnabled,omitempty"`
IsInputOutputMemoryManagementUnitEnabled *bool `json:"isInputOutputMemoryManagementUnitEnabled,omitempty"`
PercentageOfCoresEnabled *int `json:"percentageOfCoresEnabled,omitempty"`
ConfigMap map[string]string `json:"configMap,omitempty"`
Type string `json:"type"`
NumaNodesPerSocket string `json:"numaNodesPerSocket,omitempty"`
}
PlatformConfig is the platformConfig of an instance; the type discriminates the permitted fields.
type PoolCapacity ¶
type PoolCapacity struct {
CidrBlock string `json:"cidrBlock"`
ByoipRangeID string `json:"byoipRangeId"`
}
PoolCapacity is one BYOIP sub-range of a public IP pool.
type PoolCapacityIn ¶
type PoolCapacityIn struct {
ByoipRangeID string `json:"byoipRangeId"`
CidrBlock string `json:"cidrBlock"`
}
PoolCapacityIn is the AddPublicIpPoolCapacity request body.
type PoolCapacityOut ¶
type PoolCapacityOut struct {
CidrBlock string `json:"cidrBlock"`
PublicIPPoolID string `json:"publicIpPoolId"`
}
PoolCapacityOut is a ByoipAllocatedRangeSummary.
type PoolInstance ¶
type PoolInstance struct {
TimeCreated any `json:"timeCreated"`
ID string `json:"id"`
InstancePoolID string `json:"instancePoolId,omitempty"`
AvailabilityDomain string `json:"availabilityDomain"`
CompartmentID string `json:"compartmentId"`
InstanceConfigurationID string `json:"instanceConfigurationId"`
LifecycleState string `json:"lifecycleState"`
Region string `json:"region"`
Shape string `json:"shape"`
State string `json:"state"`
DisplayName string `json:"displayName"`
FaultDomain string `json:"faultDomain"`
}
PoolInstance is an InstancePoolInstance (and InstanceSummary) of the pool APIs.
type PoolLoadBalancer ¶
type PoolLoadBalancer struct {
ID string `json:"id"`
InstancePoolID string `json:"instancePoolId"`
LoadBalancerID string `json:"loadBalancerId"`
BackendSetName string `json:"backendSetName"`
VnicSelection string `json:"vnicSelection"`
LifecycleState string `json:"lifecycleState"`
Backends []string `json:"backends,omitempty"`
Port int `json:"port"`
}
PoolLoadBalancer is an instance pool load balancer attachment (InstancePoolLoadBalancerAttachment).
type PoolPlacement ¶
type PoolPlacement struct {
PrimaryVnicSubnets map[string]any `json:"primaryVnicSubnets,omitempty"`
AvailabilityDomain string `json:"availabilityDomain"`
PrimarySubnetID string `json:"primarySubnetId,omitempty"`
ComputeClusterID string `json:"computeClusterId,omitempty"`
FaultDomains []string `json:"faultDomains,omitempty"`
SecondaryVnicSubnets []map[string]any `json:"secondaryVnicSubnets,omitempty"`
}
PoolPlacement is one placement configuration of an instance pool.
type PortOptions ¶
type PortOptions struct {
DestinationPortRange *PortRange `json:"destinationPortRange,omitempty"`
SourcePortRange *PortRange `json:"sourcePortRange,omitempty"`
}
PortOptions are TCP or UDP match options.
type PreemptibleIn ¶
type PreemptibleIn struct {
PreemptionAction struct {
PreserveBootVolume *bool `json:"preserveBootVolume,omitempty"`
Type string `json:"type"`
} `json:"preemptionAction"`
}
PreemptibleIn is the preemptibleInstanceConfig of LaunchInstance.
type PrivateIP ¶
type PrivateIP struct {
CidrPrefixLength *int `json:"cidrPrefixLength,omitempty"`
Base
SubnetID string `json:"subnetId"`
IPAddress string `json:"ipAddress"`
IPState string `json:"ipState"`
Lifetime string `json:"lifetime"`
HostnameLabel string `json:"hostnameLabel,omitempty"`
VnicID string `json:"vnicId,omitempty"`
RouteTableID string `json:"routeTableId,omitempty"`
VlanID string `json:"vlanId,omitempty"`
Ipv4SubnetCidr string `json:"ipv4SubnetCidrAtCreation,omitempty"`
AvailabilityDomain string `json:"availabilityDomain,omitempty"`
IsPrimary bool `json:"isPrimary"`
}
PrivateIP is a private IP address on a VNIC (or an unassigned reserved one).
type PrivateIPListOpts ¶
type PrivateIPListOpts struct {
IPAddress, SubnetID, VnicID, VlanID, IPState, Lifetime, Page string
Limit int
}
PrivateIPListOpts are the ListPrivateIps filters.
type Provider ¶
type Provider struct{}
Provider implements service.Provider for OCI Core Services. It runs on its own listener (see Handler.StartWorker) and never matches on the shared AWS router.
func (*Provider) Init ¶
func (p *Provider) Init(ctx *service.AppContext) (service.Registerable, error)
Init creates the backend and handler; the port is bound in StartWorker.
type PublicIP ¶
type PublicIP struct {
Base
IPAddress string `json:"ipAddress"`
Lifetime string `json:"lifetime"`
Scope string `json:"scope"`
AssignedEntityID string `json:"assignedEntityId,omitempty"`
AssignedEntityType string `json:"assignedEntityType,omitempty"`
AvailabilityDomain *string `json:"availabilityDomain"`
PrivateIPID string `json:"privateIpId,omitempty"`
PublicIPPoolID string `json:"publicIpPoolId,omitempty"`
}
PublicIP is a public IP address.
type PublicIPPool ¶
type PublicIPPool struct {
Base
Capacity []PoolCapacity `json:"capacity,omitempty"`
CidrBlock []string `json:"cidrBlocks"`
}
PublicIPPool is a pool of public addresses taken from BYOIP ranges.
type ReplicaDetailsIn ¶
type ReplicaDetailsIn struct {
AvailabilityDomain string `json:"availabilityDomain"`
DisplayName string `json:"displayName"`
XrrKmsKeyID string `json:"xrrKmsKeyId"`
}
ReplicaDetailsIn is a blockVolumeReplicas entry of CreateVolume and UpdateVolume.
type ReservationConfig ¶
type ReservationConfig struct {
InstanceShapeConfig *ReservationShapeConfig `json:"instanceShapeConfig,omitempty"`
ClusterConfig map[string]any `json:"clusterConfig,omitempty"`
InstanceShape string `json:"instanceShape"`
FaultDomain string `json:"faultDomain,omitempty"`
ReservedCount int64 `json:"reservedCount"`
UsedCount int64 `json:"usedCount"`
}
ReservationConfig is one instanceReservationConfigs entry.
type ReservationInstance ¶
type ReservationInstance struct {
ShapeConfig *ReservationShapeConfig `json:"shapeConfig,omitempty"`
ID string `json:"id"`
AvailabilityDomain string `json:"availabilityDomain"`
CompartmentID string `json:"compartmentId"`
Shape string `json:"shape"`
FaultDomain string `json:"faultDomain,omitempty"`
}
ReservationInstance is a CapacityReservationInstanceSummary.
type ReservationShapeConfig ¶
type ReservationShapeConfig struct {
Ocpus *float64 `json:"ocpus,omitempty"`
MemoryInGBs *float64 `json:"memoryInGBs,omitempty"`
ResourceManagement string `json:"resourceManagement,omitempty"`
}
ReservationShapeConfig is the OCPU and memory of a reserved flexible shape.
type Resource ¶
type Resource interface {
// contains filtered or unexported methods
}
Resource is implemented by every stored OCI resource.
type Retention ¶
type Retention struct {
RetentionPeriod *RetentionDuration `json:"retentionPeriod,omitempty"`
TimeRetentionExpiresAt *time.Time `json:"timeRetentionExpiresAt,omitempty"`
IsPreventDeletionEnabled bool `json:"isPreventDeletionEnabled"`
IsRetentionLockEnabled bool `json:"isRetentionLockEnabled"`
IsIndefiniteRetentionEnabled bool `json:"isIndefiniteRetentionEnabled"`
}
Retention holds the backup retention settings shared by volume, boot volume and volume group backups.
type RetentionDuration ¶
type RetentionDuration struct {
RetentionTimeUnit string `json:"retentionTimeUnit"`
RetentionTimeAmount int `json:"retentionTimeAmount"`
}
RetentionDuration is the retentionPeriod of a backup.
type RetentionIn ¶
type RetentionIn struct {
RetentionPeriod *RetentionDuration `json:"retentionPeriod"`
IsPreventDeletionEnabled *bool `json:"isPreventDeletionEnabled"`
IsRetentionLockEnabled *bool `json:"isRetentionLockEnabled"`
IsIndefiniteRetentionEnabled *bool `json:"isIndefiniteRetentionEnabled"`
}
RetentionIn is the retention part of create and update calls for backups.
type RouteRule ¶
type RouteRule struct {
CidrBlock string `json:"cidrBlock,omitempty"`
Destination string `json:"destination,omitempty"`
DestinationType string `json:"destinationType,omitempty"`
NetworkEntityID string `json:"networkEntityId"`
RouteType string `json:"routeType,omitempty"`
Description string `json:"description,omitempty"`
}
RouteRule is one route table rule.
type RouteTable ¶
type RouteTable struct {
Base
VcnID string `json:"vcnId"`
RouteRules []RouteRule `json:"routeRules"`
}
RouteTable is a route table.
type RuleListOpts ¶
RuleListOpts carries the ListNetworkSecurityGroupSecurityRules query.
type SecurityList ¶
type SecurityList struct {
Base
VcnID string `json:"vcnId"`
IngressRules []IngressRule `json:"ingressSecurityRules"`
EgressRules []EgressRule `json:"egressSecurityRules"`
}
SecurityList is a security list.
type SecurityRule ¶
type SecurityRule struct {
TimeCreated time.Time `json:"timeCreated"`
IcmpOptions *IcmpOptions `json:"icmpOptions,omitempty"`
TCPOptions *PortOptions `json:"tcpOptions,omitempty"`
UDPOptions *PortOptions `json:"udpOptions,omitempty"`
IsStateless *bool `json:"isStateless,omitempty"`
ID string `json:"id"`
Direction string `json:"direction"`
Protocol string `json:"protocol"`
Source string `json:"source,omitempty"`
SourceType string `json:"sourceType,omitempty"`
Destination string `json:"destination,omitempty"`
DestinationType string `json:"destinationType,omitempty"`
Description string `json:"description,omitempty"`
IsValid bool `json:"isValid"`
}
SecurityRule is a network security group rule.
type SecurityRuleIn ¶
type SecurityRuleIn struct {
IcmpOptions *IcmpOptions `json:"icmpOptions"`
TCPOptions *PortOptions `json:"tcpOptions"`
UDPOptions *PortOptions `json:"udpOptions"`
IsStateless *bool `json:"isStateless"`
ID string `json:"id"`
Direction string `json:"direction"`
Protocol string `json:"protocol"`
Source string `json:"source"`
SourceType string `json:"sourceType"`
Destination string `json:"destination"`
DestinationType string `json:"destinationType"`
Description string `json:"description"`
}
SecurityRuleIn is a rule in an add or update call.
type SecurityRulesIn ¶
type SecurityRulesIn struct {
SecurityRules []SecurityRuleIn `json:"securityRules"`
}
SecurityRulesIn is the body of the add and update security rule calls.
type SecurityRulesOut ¶
type SecurityRulesOut struct {
SecurityRules []SecurityRule `json:"securityRules"`
}
SecurityRulesOut is the result of the add and update security rule calls.
type Service ¶
type Service struct {
CidrBlock string `json:"cidrBlock"`
Description string `json:"description"`
ID string `json:"id"`
Name string `json:"name"`
}
Service is an Oracle service reachable through a service gateway.
type ServiceGateway ¶
type ServiceGateway struct {
Base
VcnID string `json:"vcnId"`
RouteTableID string `json:"routeTableId,omitempty"`
Services []ServiceRef `json:"services"`
BlockTraffic bool `json:"blockTraffic"`
}
ServiceGateway is a service gateway.
type ServiceIDIn ¶
type ServiceIDIn struct {
ServiceID string `json:"serviceId"`
}
ServiceIDIn names a service in a request body.
type ServiceNic ¶
type ServiceNic struct {
VnicID string
PrivateIPID string
IPAddress string
// PublicIPs are the public IPv4 addresses on the primary private IP.
PublicIPs []string
Ipv6Addresses []string
}
ServiceNic is the VNIC and primary private IP created by CreateServiceNic.
type ServiceNicIn ¶
type ServiceNicIn struct {
CompartmentID string
AD string
SubnetID string
DisplayName string
HostnameLabel string
PrivateIP string
NsgIDs []string
// AssignPublicIP nil keeps the subnet default.
AssignPublicIP *bool
// ReservedPublicIPIDs are unassigned reserved public IPs attached to the primary private IP.
ReservedPublicIPIDs []string
// Ipv6Addresses and Ipv6SubnetCidrs each request one IPv6 per entry; AssignIPv6 asks for one when both are empty.
Ipv6Addresses []string
Ipv6SubnetCidrs []string
AssignIPv6 bool
}
ServiceNicIn describes a VNIC created on behalf of another OCI service (for example a File Storage mount target).
type ServiceRef ¶
type ServiceRef struct {
ServiceID string `json:"serviceId"`
ServiceName string `json:"serviceName"`
}
ServiceRef names a service attached to a service gateway.
type SetOriginAsnIn ¶
type SetOriginAsnIn struct {
AsPathPrependLength *int `json:"asPathPrependLength"`
ByoasnID string `json:"byoasnId"`
}
SetOriginAsnIn is the SetOriginAsn request body.
type Settings ¶
type Settings struct {
Port int `` //nolint:lll // config struct tags are intentionally verbose
/* 198-byte string literal not displayed */
EnforceAuth bool `` //nolint:lll // config struct tags are intentionally verbose
/* 220-byte string literal not displayed */
}
Settings holds service-level configuration, embedded in the root CLI as CLI.OCICore.
func DefaultSettings ¶
func DefaultSettings() Settings
DefaultSettings returns the settings used when no ConfigProvider is available.
type Shape ¶
type Shape struct {
OcpuOptions *MinMax `json:"ocpuOptions,omitempty"`
MemoryOptions *MemOpts `json:"memoryOptions,omitempty"`
NetworkingBandwidthOptions *BwOpts `json:"networkingBandwidthOptions,omitempty"`
Shape string `json:"shape"`
ProcessorDescription string `json:"processorDescription"`
BillingType string `json:"billingType"`
ResizeCompatibleShapes []string `json:"resizeCompatibleShapes,omitempty"`
Ocpus float64 `json:"ocpus"`
MemoryInGBs float64 `json:"memoryInGBs"`
NetworkingBandwidthInGbps float64 `json:"networkingBandwidthInGbps"`
MaxVnicAttachments int `json:"maxVnicAttachments"`
IsFlexible bool `json:"isFlexible"`
}
Shape is one entry of ListShapes.
type ShapeConfigIn ¶
type ShapeConfigIn struct {
Ocpus *float64 `json:"ocpus"`
MemoryInGBs *float64 `json:"memoryInGBs"`
Vcpus *int `json:"vcpus"`
}
ShapeConfigIn is the shapeConfig of LaunchInstance and UpdateInstance.
type ShapeRef ¶
type ShapeRef struct {
Name string
Arch string
Flexible bool
MinOcpus float64
MaxOcpus float64
MaxMemoryGBs float64
DefaultMemPerOcpu float64
}
ShapeRef is the read-only view of a compute shape.
func LookupShape ¶
LookupShape returns a catalogue shape by name.
type SourceDetails ¶
type SourceDetails struct {
SourceType string `json:"sourceType"`
ImageID string `json:"imageId,omitempty"`
BootVolumeID string `json:"bootVolumeId,omitempty"`
BootVolumeSizeInGBs *int64 `json:"bootVolumeSizeInGBs,omitempty"`
BootVolumeVpusPerGB *int64 `json:"bootVolumeVpusPerGB,omitempty"`
KmsKeyID string `json:"kmsKeyId,omitempty"`
}
SourceDetails is the polymorphic instance source (sourceType image or bootVolume).
type Subnet ¶
type Subnet struct {
Base
VcnID string `json:"vcnId"`
AvailabilityDomain *string `json:"availabilityDomain"`
CidrBlock string `json:"cidrBlock"`
DhcpOptionsID string `json:"dhcpOptionsId"`
DNSLabel string `json:"dnsLabel,omitempty"`
SubnetDomainName string `json:"subnetDomainName,omitempty"`
Ipv6CidrBlock string `json:"ipv6CidrBlock,omitempty"`
Ipv6VirtualRouterIP string `json:"ipv6VirtualRouterIp,omitempty"`
RouteTableID string `json:"routeTableId"`
VirtualRouterIP string `json:"virtualRouterIp"`
VirtualRouterMac string `json:"virtualRouterMac"`
Ipv4CidrBlocks []string `json:"ipv4CidrBlocks"`
Ipv6CidrBlocks []string `json:"ipv6CidrBlocks,omitempty"`
SecurityListIDs []string `json:"securityListIds"`
ProhibitInternetIngress bool `json:"prohibitInternetIngress"`
ProhibitPublicIPOnVnic bool `json:"prohibitPublicIpOnVnic"`
}
Subnet is a subnet of a VCN.
type SubnetIPOut ¶
type SubnetIPOut struct {
AssignedTime *time.Time `json:"assignedTime,omitempty"`
IsPrimary *bool `json:"isPrimary,omitempty"`
IPID string `json:"ipId"`
IPAddress string `json:"ipAddress"`
IPAddressLifetime string `json:"ipAddressLifetime,omitempty"`
ParentCidr string `json:"parentCidr"`
AssociatedPublicIP string `json:"associatedPublicIp,omitempty"`
PublicIPLifetime string `json:"publicIpLifetime,omitempty"`
AssociatedPublicPool string `json:"associatedPublicIpPool,omitempty"`
DNSHostName string `json:"dnsHostName,omitempty"`
AssignedResourceName string `json:"assignedResourceName,omitempty"`
AssignedResourceType string `json:"assignedResourceType,omitempty"`
AddressType string `json:"addressType"`
}
SubnetIPOut is one IP of the subnet inventory.
type SubnetInventoryOut ¶
type SubnetInventoryOut struct {
LastUpdatedTimestamp time.Time `json:"lastUpdatedTimestamp"`
CompartmentID string `json:"compartmentId"`
Message string `json:"message,omitempty"`
Items []SubnetIPOut `json:"ipInventorySubnetResourceSummary"`
Count int `json:"count"`
}
SubnetInventoryOut is the IpInventorySubnetResourceCollection response.
type SubnetRef ¶
type SubnetRef struct {
ID string
VcnID string
CompartmentID string
AvailabilityDomain string
CidrBlock string
State string
// ProhibitPublicIP is true for a private subnet.
ProhibitPublicIP bool
}
SubnetRef is the read-only view of a subnet other emulators validate references against.
type TagsIn ¶
type TagsIn struct {
FreeformTags map[string]string `json:"freeformTags"`
DefinedTags map[string]map[string]any `json:"definedTags"`
}
TagsIn carries the tags accepted by create and update calls.
type TerminateOpts ¶
TerminateOpts are the query options of TerminateInstance.
type TopologyOut ¶
type TopologyOut struct {
TimeCreated time.Time `json:"timeCreated"`
Type string `json:"type"`
VcnID string `json:"vcnId,omitempty"`
SubnetID string `json:"subnetId,omitempty"`
Entities []map[string]any `json:"entities"`
Relationships []topoRel `json:"relationships"`
LimitedEntities []string `json:"limitedEntities"`
}
TopologyOut is the VcnTopology, SubnetTopology and NetworkingTopology response.
type UpdateBootVolumeBackupIn ¶
type UpdateBootVolumeBackupIn struct {
KmsKeyID *string `json:"kmsKeyId"`
RetentionIn
UpdateIn
}
UpdateBootVolumeBackupIn is the UpdateBootVolumeBackup request body.
type UpdateCaptureFilterIn ¶
type UpdateCaptureFilterIn struct {
UpdateIn
VtapRules *[]CaptureRule `json:"vtapCaptureFilterRules"`
FlowLogRules *[]CaptureRule `json:"flowLogCaptureFilterRules"`
}
UpdateCaptureFilterIn is the UpdateCaptureFilter request body.
type UpdateComputeClusterIn ¶
type UpdateComputeClusterIn struct {
UpdateIn
PlacementConstraintDetails map[string]any `json:"placementConstraintDetails"`
}
UpdateComputeClusterIn is the UpdateComputeCluster request body.
type UpdateConsoleIn ¶
type UpdateConsoleIn = UpdateIn
UpdateConsoleIn is the UpdateInstanceConsoleConnection and UpdateConsoleHistory request body.
type UpdateDhcpOptionsIn ¶
type UpdateDhcpOptionsIn struct {
Options *[]DhcpOption `json:"options"`
DomainNameType *string `json:"domainNameType"`
UpdateIn
}
UpdateDhcpOptionsIn is the UpdateDhcpOptions request body.
type UpdateDrgAttachmentIn ¶
type UpdateDrgAttachmentIn struct {
NetworkDetails *DrgNetworkDetails `json:"networkDetails"`
DoesPreserveOriginalRoutesWithNat *bool `json:"doesPreserveOriginalRoutesWithNat"`
DrgRouteTableID *string `json:"drgRouteTableId"`
ExportDrgRouteDistributionID *string `json:"exportDrgRouteDistributionId"`
RouteTableID *string `json:"routeTableId"`
DrgNatPolicyID *string `json:"drgNatPolicyId"`
UpdateIn
}
UpdateDrgAttachmentIn is the UpdateDrgAttachment request body.
type UpdateDrgIn ¶
type UpdateDrgIn struct {
DefaultDrgRouteTables *DefaultDrgRouteTables `json:"defaultDrgRouteTables"`
UpdateIn
}
UpdateDrgIn is the UpdateDrg request body.
type UpdateDrgRouteTableIn ¶
type UpdateDrgRouteTableIn struct {
ImportDrgRouteDistributionID *string `json:"importDrgRouteDistributionId"`
IsEcmpEnabled *bool `json:"isEcmpEnabled"`
UpdateIn
}
UpdateDrgRouteTableIn is the UpdateDrgRouteTable request body.
type UpdateDrgRuleIn ¶
type UpdateDrgRuleIn struct {
Destination *string `json:"destination"`
DestinationType *string `json:"destinationType"`
NextHopDrgAttachmentID *string `json:"nextHopDrgAttachmentId"`
ID string `json:"id"`
}
UpdateDrgRuleIn is a rule of UpdateDrgRouteRules.
type UpdateDrgRulesIn ¶
type UpdateDrgRulesIn struct {
RouteRules []UpdateDrgRuleIn `json:"routeRules"`
}
UpdateDrgRulesIn is the UpdateDrgRouteRules request body.
type UpdateDrgStatementIn ¶
type UpdateDrgStatementIn struct {
Priority *int `json:"priority"`
MatchCriteria *[]DrgMatchCriteria `json:"matchCriteria"`
ID string `json:"id"`
}
UpdateDrgStatementIn is a statement of UpdateDrgRouteDistributionStatements.
type UpdateDrgStatementsIn ¶
type UpdateDrgStatementsIn struct {
Statements []UpdateDrgStatementIn `json:"statements"`
}
UpdateDrgStatementsIn is the UpdateDrgRouteDistributionStatements request body.
type UpdateInstanceIn ¶
type UpdateInstanceIn struct {
Shape *string `json:"shape"`
ShapeConfig *ShapeConfigIn `json:"shapeConfig"`
Metadata map[string]string `json:"metadata"`
ExtendedMetadata map[string]any `json:"extendedMetadata"`
AgentConfig map[string]any `json:"agentConfig"`
SourceDetails *UpdateSourceIn `json:"sourceDetails"`
UpdateIn
}
UpdateInstanceIn is the UpdateInstance request body.
type UpdateInstancePoolIn ¶
type UpdateInstancePoolIn struct {
UpdateIn
Size *int `json:"size"`
InstanceConfigurationID *string `json:"instanceConfigurationId"`
Placements *[]PoolPlacement `json:"placementConfigurations"`
DisplayNameFormatter *string `json:"instanceDisplayNameFormatter"`
HostnameFormatter *string `json:"instanceHostnameFormatter"`
}
UpdateInstancePoolIn is the UpdateInstancePool request body.
type UpdateInternetGatewayIn ¶
type UpdateInternetGatewayIn struct {
IsEnabled *bool `json:"isEnabled"`
RouteTableID *string `json:"routeTableId"`
UpdateIn
}
UpdateInternetGatewayIn is the UpdateInternetGateway request body.
type UpdateIpv6In ¶
type UpdateIpv6In struct {
VnicID *string `json:"vnicId"`
Hostname *string `json:"hostname"`
RouteTableID *string `json:"routeTableId"`
Lifetime *string `json:"lifetime"`
UpdateIn
}
UpdateIpv6In is the UpdateIpv6 request body.
type UpdateLpgIn ¶
UpdateLpgIn is the UpdateLocalPeeringGateway request body.
type UpdateNatGatewayIn ¶
type UpdateNatGatewayIn struct {
BlockTraffic *bool `json:"blockTraffic"`
RouteTableID *string `json:"routeTableId"`
UpdateIn
}
UpdateNatGatewayIn is the UpdateNatGateway request body.
type UpdatePrivateIPIn ¶
type UpdatePrivateIPIn struct {
HostnameLabel *string `json:"hostnameLabel"`
VnicID *string `json:"vnicId"`
Lifetime *string `json:"lifetime"`
RouteTableID *string `json:"routeTableId"`
UpdateIn
}
UpdatePrivateIPIn is the UpdatePrivateIp request body.
type UpdatePublicIPIn ¶
UpdatePublicIPIn is the UpdatePublicIp request body.
type UpdateReservationIn ¶
type UpdateReservationIn struct {
UpdateIn
IsDefaultReservation *bool `json:"isDefaultReservation"`
Configs *[]ReservationConfig `json:"instanceReservationConfigs"`
}
UpdateReservationIn is the UpdateComputeCapacityReservation request body.
type UpdateRouteTableIn ¶
UpdateRouteTableIn is the UpdateRouteTable request body.
type UpdateSecurityListIn ¶
type UpdateSecurityListIn struct {
IngressRules *[]IngressRule `json:"ingressSecurityRules"`
EgressRules *[]EgressRule `json:"egressSecurityRules"`
UpdateIn
}
UpdateSecurityListIn is the UpdateSecurityList request body.
type UpdateServiceGatewayIn ¶
type UpdateServiceGatewayIn struct {
BlockTraffic *bool `json:"blockTraffic"`
RouteTableID *string `json:"routeTableId"`
Services *[]ServiceIDIn `json:"services"`
UpdateIn
}
UpdateServiceGatewayIn is the UpdateServiceGateway request body.
type UpdateSourceIn ¶
type UpdateSourceIn struct {
IsPreserveBootVolumeEnabled *bool `json:"isPreserveBootVolumeEnabled"`
BootVolumeSizeInGBs *int64 `json:"bootVolumeSizeInGBs"`
SourceType string `json:"sourceType"`
BootVolumeID string `json:"bootVolumeId"`
ImageID string `json:"imageId"`
KmsKeyID string `json:"kmsKeyId"`
}
UpdateSourceIn is UpdateInstanceDetails.sourceDetails: replace the boot volume with a boot volume or an image.
type UpdateSubnetIn ¶
type UpdateSubnetIn struct {
DhcpOptionsID *string `json:"dhcpOptionsId"`
RouteTableID *string `json:"routeTableId"`
CidrBlock *string `json:"cidrBlock"`
Ipv6CidrBlock *string `json:"ipv6CidrBlock"`
SecurityListIDs *[]string `json:"securityListIds"`
Ipv6CidrBlocks *[]string `json:"ipv6CidrBlocks"`
UpdateIn
}
UpdateSubnetIn is the UpdateSubnet request body.
type UpdateVlanIn ¶
type UpdateVlanIn struct {
UpdateIn
NsgIDs *[]string `json:"nsgIds"`
RouteTableID *string `json:"routeTableId"`
CidrBlock *string `json:"cidrBlock"`
}
UpdateVlanIn is the UpdateVlan request body.
type UpdateVnicIn ¶
type UpdateVnicIn struct {
HostnameLabel *string `json:"hostnameLabel"`
SkipSourceDestCheck *bool `json:"skipSourceDestCheck"`
NsgIDs *[]string `json:"nsgIds"`
UpdateIn
}
UpdateVnicIn is the UpdateVnic request body.
type UpdateVolumeAttachmentIn ¶
UpdateVolumeAttachmentIn is the UpdateVolumeAttachment request body.
type UpdateVolumeBackupIn ¶
type UpdateVolumeBackupIn struct {
RetentionIn
UpdateIn
}
UpdateVolumeBackupIn is the UpdateVolumeBackup request body.
type UpdateVolumeBackupPolicyIn ¶
type UpdateVolumeBackupPolicyIn struct {
Schedules *[]BackupSchedule `json:"schedules"`
UpdateIn
}
UpdateVolumeBackupPolicyIn is the UpdateVolumeBackupPolicy request body.
type UpdateVolumeGroupBackupIn ¶
type UpdateVolumeGroupBackupIn struct {
RetentionIn
UpdateIn
}
UpdateVolumeGroupBackupIn is the UpdateVolumeGroupBackup request body.
type UpdateVolumeGroupIn ¶
type UpdateVolumeGroupIn struct {
UpdateIn
VolumeIDs *[]string `json:"volumeIds"`
VolumeGroupReplicas *[]ReplicaDetailsIn `json:"volumeGroupReplicas"`
}
UpdateVolumeGroupIn is the UpdateVolumeGroup request body.
type UpdateVolumeIn ¶
type UpdateVolumeIn struct {
BlockVolumeReplicas *[]ReplicaDetailsIn `json:"blockVolumeReplicas"`
BootVolumeReplicas *[]ReplicaDetailsIn `json:"bootVolumeReplicas"`
AutotunePolicies *[]AutotunePolicy `json:"autotunePolicies"`
SizeInGBs *int64 `json:"sizeInGBs"`
VpusPerGB *int64 `json:"vpusPerGB"`
IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"`
UpdateIn
}
UpdateVolumeIn is the UpdateVolume request body.
type UpdateVtapIn ¶
type UpdateVtapIn struct {
UpdateIn
VxlanNetworkIdentifier *int64 `json:"vxlanNetworkIdentifier"`
IsVtapEnabled *bool `json:"isVtapEnabled"`
MaxPacketSize *int `json:"maxPacketSize"`
SourceID *string `json:"sourceId"`
TargetID *string `json:"targetId"`
TargetIP *string `json:"targetIp"`
CaptureFilterID *string `json:"captureFilterId"`
TrafficMode *string `json:"trafficMode"`
SourceType *string `json:"sourceType"`
TargetType *string `json:"targetType"`
}
UpdateVtapIn is the UpdateVtap request body.
type Vcn ¶
type Vcn struct {
Base
CidrBlock string `json:"cidrBlock"`
DefaultDhcpOptionsID string `json:"defaultDhcpOptionsId"`
DefaultRouteTableID string `json:"defaultRouteTableId"`
DefaultSecurityList string `json:"defaultSecurityListId"`
DNSLabel string `json:"dnsLabel,omitempty"`
VcnDomainName string `json:"vcnDomainName,omitempty"`
CidrBlocks []string `json:"cidrBlocks"`
Ipv6CidrBlocks []string `json:"ipv6CidrBlocks,omitempty"`
Ipv6PrivateCidrs []string `json:"ipv6PrivateCidrBlocks,omitempty"`
}
Vcn is a virtual cloud network.
type VcnDNSResolverAssociation ¶
type VcnDNSResolverAssociation struct {
VcnID string `json:"vcnId"`
LifecycleState string `json:"lifecycleState"`
DNSResolverID string `json:"dnsResolverId,omitempty"`
}
VcnDNSResolverAssociation is the GetVcnDNSResolverAssociation response.
type Vlan ¶
type Vlan struct {
AvailabilityDomain *string `json:"availabilityDomain,omitempty"`
Base
VcnID string `json:"vcnId"`
CidrBlock string `json:"cidrBlock"`
RouteTableID string `json:"routeTableId,omitempty"`
NsgIDs []string `json:"nsgIds"`
VlanTag int `json:"vlanTag"`
}
Vlan is a VLAN of a VCN; VNICs and private IPs can be created in it.
type Vnic ¶
type Vnic struct {
Base
AvailabilityDomain string `json:"availabilityDomain"`
HostnameLabel string `json:"hostnameLabel,omitempty"`
MacAddress string `json:"macAddress"`
PrivateIP string `json:"privateIp"`
PublicIP string `json:"publicIp,omitempty"`
SubnetID string `json:"subnetId,omitempty"`
NsgIDs []string `json:"nsgIds"`
VlanID string `json:"vlanId,omitempty"`
Ipv6Addresses []string `json:"ipv6Addresses,omitempty"`
IsPrimary bool `json:"isPrimary"`
SkipSourceDestCheck bool `json:"skipSourceDestCheck"`
}
Vnic is a virtual network interface card.
type VnicAttachment ¶
type VnicAttachment struct {
Base
AvailabilityDomain string `json:"availabilityDomain"`
InstanceID string `json:"instanceId"`
SubnetID string `json:"subnetId,omitempty"`
VnicID string `json:"vnicId"`
VlanID string `json:"vlanId,omitempty"`
NicIndex int `json:"nicIndex"`
VlanTag int `json:"vlanTag"`
}
VnicAttachment links a VNIC to an instance.
type Volume ¶
type Volume struct {
SourceDetails *VolumeSource `json:"sourceDetails,omitempty"`
AutoTunedVpusPerGB *int64 `json:"autoTunedVpusPerGB,omitempty"`
Base
AvailabilityDomain string `json:"availabilityDomain"`
KmsKeyID string `json:"kmsKeyId,omitempty"`
VolumeGroupID string `json:"volumeGroupId,omitempty"`
BlockVolumeReplicas []BlockVolumeReplicaInfo `json:"blockVolumeReplicas,omitempty"`
AutotunePolicies []AutotunePolicy `json:"autotunePolicies,omitempty"`
SizeInMBs int64 `json:"sizeInMBs"`
SizeInGBs int64 `json:"sizeInGBs"`
VpusPerGB int64 `json:"vpusPerGB"`
IsHydrated bool `json:"isHydrated"`
IsAutoTuneEnabled bool `json:"isAutoTuneEnabled"`
}
Volume is a block volume.
type VolumeAttachment ¶
type VolumeAttachment struct {
Base
AttachmentType string `json:"attachmentType"`
AvailabilityDomain string `json:"availabilityDomain"`
InstanceID string `json:"instanceId"`
VolumeID string `json:"volumeId"`
Device string `json:"device,omitempty"`
IscsiLoginState string `json:"iscsiLoginState,omitempty"`
Ipv4 string `json:"ipv4,omitempty"`
Iqn string `json:"iqn,omitempty"`
ChapUsername string `json:"chapUsername,omitempty"`
ChapSecret string `json:"chapSecret,omitempty"`
EncryptionInTransitType string `json:"encryptionInTransitType"`
Port int `json:"port,omitempty"`
IsReadOnly bool `json:"isReadOnly"`
IsMultipath bool `json:"isMultipath"`
IsPvEncryptionInTransit bool `json:"isPvEncryptionInTransitEnabled"`
IsAgentAutoIscsiLoginEnabled bool `json:"isAgentAutoIscsiLoginEnabled,omitempty"`
}
VolumeAttachment is an iSCSI or paravirtualized volume attachment (attachmentType).
type VolumeBackup ¶
type VolumeBackup struct {
TimeRequestReceived time.Time `json:"timeRequestReceived"`
Base
Retention
Type string `json:"type"`
SourceType string `json:"sourceType"`
VolumeID string `json:"volumeId"`
SourceVolumeBackupID string `json:"sourceVolumeBackupId,omitempty"`
VolumeGroupBackupID string `json:"volumeGroupBackupId,omitempty"`
Region string `json:"region,omitempty"`
KmsKeyID string `json:"kmsKeyId,omitempty"`
SizeInMBs int64 `json:"sizeInMBs"`
SizeInGBs int64 `json:"sizeInGBs"`
UniqueSizeInGBs int64 `json:"uniqueSizeInGBs"`
UniqueSizeInMbs int64 `json:"uniqueSizeInMbs"`
}
VolumeBackup is a block volume backup.
type VolumeBackupPolicy ¶
type VolumeBackupPolicy struct {
Base
DestinationRegion string `json:"destinationRegion,omitempty"`
Schedules []BackupSchedule `json:"schedules"`
}
VolumeBackupPolicy is a predefined or user defined backup policy; schedules are stored, never executed.
type VolumeGroup ¶
type VolumeGroup struct {
SourceDetails *VolumeGroupSource `json:"sourceDetails,omitempty"`
Base
AvailabilityDomain string `json:"availabilityDomain"`
VolumeIDs []string `json:"volumeIds"`
VolumeGroupReplicas []VolumeGroupReplicaInfo `json:"volumeGroupReplicas,omitempty"`
SizeInMBs int64 `json:"sizeInMBs"`
SizeInGBs int64 `json:"sizeInGBs"`
IsHydrated bool `json:"isHydrated"`
}
VolumeGroup is a set of volumes and boot volumes backed up together.
type VolumeGroupBackup ¶
type VolumeGroupBackup struct {
TimeRequestReceived time.Time `json:"timeRequestReceived"`
Base
Retention
Type string `json:"type"`
SourceType string `json:"sourceType"`
VolumeGroupID string `json:"volumeGroupId,omitempty"`
SourceVolumeGroupBackupID string `json:"sourceVolumeGroupBackupId,omitempty"`
Region string `json:"region,omitempty"`
VolumeBackupIDs []string `json:"volumeBackupIds"`
SizeInMBs int64 `json:"sizeInMBs"`
SizeInGBs int64 `json:"sizeInGBs"`
UniqueSizeInMbs int64 `json:"uniqueSizeInMbs"`
UniqueSizeInGbs int64 `json:"uniqueSizeInGbs"`
}
VolumeGroupBackup is a crash-consistent backup of every member of a volume group.
type VolumeGroupReplica ¶
type VolumeGroupReplica struct {
TimeLastSynced time.Time `json:"timeLastSynced"`
Base
AvailabilityDomain string `json:"availabilityDomain"`
VolumeGroupID string `json:"volumeGroupId"`
KmsKeyID string `json:"kmsKeyId,omitempty"`
MemberReplicas []MemberReplica `json:"memberReplicas"`
SizeInGBs int64 `json:"sizeInGBs"`
}
VolumeGroupReplica is the asynchronous copy of a volume group in another availability domain.
type VolumeGroupReplicaInfo ¶
type VolumeGroupReplicaInfo struct {
DisplayName string `json:"displayName"`
VolumeGroupReplicaID string `json:"volumeGroupReplicaId"`
AvailabilityDomain string `json:"availabilityDomain"`
KmsKeyID string `json:"kmsKeyId,omitempty"`
}
VolumeGroupReplicaInfo is the replica summary embedded in a volume group.
type VolumeGroupSource ¶
type VolumeGroupSource struct {
Type string `json:"type"`
VolumeGroupBackupID string `json:"volumeGroupBackupId,omitempty"`
VolumeGroupID string `json:"volumeGroupId,omitempty"`
VolumeGroupReplicaID string `json:"volumeGroupReplicaId,omitempty"`
VolumeIDs []string `json:"volumeIds,omitempty"`
}
VolumeGroupSource is the polymorphic source of a volume group: one of the id fields is set.
type VolumeSource ¶
VolumeSource is the polymorphic volume source (type volume, volumeBackup or bootVolume).
type Vtap ¶
type Vtap struct {
Base
VcnID string `json:"vcnId"`
SourceID string `json:"sourceId"`
CaptureFilterID string `json:"captureFilterId"`
TargetID string `json:"targetId,omitempty"`
TargetIP string `json:"targetIp,omitempty"`
LifecycleDetails string `json:"lifecycleStateDetails"`
EncapsulationProtocol string `json:"encapsulationProtocol"`
SourceType string `json:"sourceType"`
TargetType string `json:"targetType"`
TrafficMode string `json:"trafficMode"`
SourcePrivateEndpointIP string `json:"sourcePrivateEndpointIp,omitempty"`
SourcePrivateEndpointSubnetID string `json:"sourcePrivateEndpointSubnetId,omitempty"`
VxlanNetworkIdentifier int64 `json:"vxlanNetworkIdentifier"`
MaxPacketSize int `json:"maxPacketSize"`
IsVtapEnabled bool `json:"isVtapEnabled"`
}
Vtap is a virtual test access point; traffic mirroring is recorded, not performed.
type WorkRequest ¶
type WorkRequest struct {
TimeAccepted time.Time `json:"timeAccepted"`
FinishAt time.Time `json:"finishAt"`
ID string `json:"id"`
OperationType string `json:"operationType"`
CompartmentID string `json:"compartmentId"`
Resources []WorkResource `json:"resources"`
Seq int64 `json:"seq"`
}
WorkRequest is an asynchronous Core Services operation; it runs on the injectable clock.
type WorkRequestEntry ¶
type WorkRequestEntry struct {
Timestamp time.Time `json:"timestamp"`
Message string `json:"message"`
}
WorkRequestEntry is one log line of a work request.
type WorkRequestError ¶
type WorkRequestError struct {
Timestamp time.Time `json:"timestamp"`
Code string `json:"code"`
Message string `json:"message"`
}
WorkRequestError is a work request error entry.
type WorkRequestSummaryWire ¶
type WorkRequestSummaryWire struct {
TimeAccepted time.Time `json:"timeAccepted"`
TimeStarted *time.Time `json:"timeStarted,omitempty"`
TimeFinished *time.Time `json:"timeFinished,omitempty"`
OperationType string `json:"operationType"`
Status string `json:"status"`
ID string `json:"id"`
CompartmentID string `json:"compartmentId"`
PercentComplete float64 `json:"percentComplete"`
}
WorkRequestSummaryWire is the work request summary wire shape.
type WorkRequestWire ¶
type WorkRequestWire struct {
TimeAccepted time.Time `json:"timeAccepted"`
TimeStarted *time.Time `json:"timeStarted,omitempty"`
TimeFinished *time.Time `json:"timeFinished,omitempty"`
OperationType string `json:"operationType"`
Status string `json:"status"`
ID string `json:"id"`
CompartmentID string `json:"compartmentId"`
Resources []WorkResource `json:"resources"`
PercentComplete float64 `json:"percentComplete"`
}
WorkRequestWire is the work request wire shape.
type WorkResource ¶
type WorkResource struct {
ActionType string `json:"actionType"`
EntityType string `json:"entityType"`
Identifier string `json:"identifier"`
EntityURI string `json:"entityUri,omitempty"`
}
WorkResource is an entity a work request touches.
type WorkerSpec ¶
type WorkerSpec struct {
Ocpus *float64
MemoryGBs *float64
BootVolumeGBs *int64
PreserveBootVolume *bool
Metadata map[string]string
Compartment string
Name string
AD string
FaultDomain string
SubnetID string
Shape string
ImageID string
NetworkType string
CapacityReservationID string
ComputeClusterID string
NsgIDs []string
SecondaryVnics []WorkerVnic
Preemptible bool
}
WorkerSpec describes a compute instance launched on behalf of another service (a Kubernetes worker node).
Source Files
¶
- autotune.go
- backup.go
- backupcopy.go
- backupsched.go
- bootattach.go
- bootbackup.go
- bootreplica.go
- bulkipv6.go
- bulkprivateip.go
- byoip.go
- catalog.go
- cidr.go
- compute_models.go
- compute_ops.go
- computeres.go
- console.go
- credentials.go
- deps.go
- dnsresolver.go
- drg.go
- drg_ops.go
- drgnat.go
- drgroute.go
- errors.go
- gateways.go
- groupreplica.go
- handler.go
- inproc.go
- instance.go
- instancepool.go
- ipinventory.go
- ipv6.go
- kms.go
- launchvol.go
- models.go
- network.go
- ops.go
- peering.go
- persistence.go
- platform.go
- poolloadbalancer.go
- provider.go
- reach.go
- refs.go
- replica.go
- retention.go
- route.go
- routing.go
- secrules.go
- servicenic.go
- settings.go
- storage_models.go
- store.go
- subnet.go
- subnetcidr.go
- topology.go
- vcn.go
- vcncidr.go
- vlan.go
- volgroup.go
- volume.go
- vtap.go
- worker.go
- workreq.go