oracle-watchdog

oci

import "github.com/afreidah/oracle-watchdog/internal/oci"

Index

type Client

Client provides OCI instance management operations.

type Client struct {
    // contains filtered or unexported fields
}

func NewClient

func NewClient(configPath, profile string) (*Client, error)

NewClient creates an OCI client using the specified config file and profile.

func (*Client) RestartInstance

func (c *Client) RestartInstance(ctx context.Context, instanceID, compartmentID string) error

RestartInstance performs a stop-then-start cycle on the given instance. Waits for STOPPED state before initiating start.

Generated by gomarkdoc