Documentation ¶
Index ¶
- Constants
- type NetworkConfig
- type Oracle
- func (o *Oracle) Configuration(ctx context.Context, r state.State) ([]byte, error)
- func (o *Oracle) KernelArgs() procfs.Parameters
- func (o *Oracle) Mode() runtime.Mode
- func (o *Oracle) Name() string
- func (o *Oracle) NetworkConfiguration(ctx context.Context, ch chan<- *runtime.PlatformNetworkConfig) error
- func (o *Oracle) ParseMetadata(interfaceAddresses []NetworkConfig, hostname string) (*runtime.PlatformNetworkConfig, error)
Constants ¶
View Source
const ( // OracleHostnameEndpoint is the local metadata endpoint for the hostname. OracleHostnameEndpoint = "http://169.254.169.254/opc/v2/instance/hostname" // OracleUserDataEndpoint is the local metadata endpoint inside of Oracle Cloud. OracleUserDataEndpoint = "http://169.254.169.254/opc/v2/instance/metadata/user_data" // OracleNetworkEndpoint is the local network metadata endpoint inside of Oracle Cloud. OracleNetworkEndpoint = "http://169.254.169.254/opc/v2/vnics/" )
Ref: https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/gettingmetadata.htm
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkConfig ¶
type NetworkConfig struct { HWAddr string `json:"macAddr"` PrivateIP string `json:"privateIp"` VirtualRouterIP string `json:"virtualRouterIp"` SubnetCidrBlock string `json:"subnetCidrBlock"` Ipv6SubnetCidrBlock string `json:"ipv6SubnetCidrBlock,omitempty"` Ipv6VirtualRouterIP string `json:"ipv6VirtualRouterIp,omitempty"` }
NetworkConfig holds network interface meta config.
type Oracle ¶
type Oracle struct{}
Oracle is the concrete type that implements the platform.Platform interface.
func (*Oracle) Configuration ¶
Configuration implements the platform.Platform interface.
func (*Oracle) KernelArgs ¶
func (o *Oracle) KernelArgs() procfs.Parameters
KernelArgs implements the runtime.Platform interface.
func (*Oracle) NetworkConfiguration ¶
func (o *Oracle) NetworkConfiguration(ctx context.Context, ch chan<- *runtime.PlatformNetworkConfig) error
NetworkConfiguration implements the runtime.Platform interface.
func (*Oracle) ParseMetadata ¶
func (o *Oracle) ParseMetadata(interfaceAddresses []NetworkConfig, hostname string) (*runtime.PlatformNetworkConfig, error)
ParseMetadata converts Oracle Cloud metadata into platform network configuration.
Click to show internal directories.
Click to hide internal directories.