statusreporter

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Code from here is a potential candidate to add to https://github.com/Azure/azure-extension-platform/blob/main/pkg/status/status.go and have others extensions benefit from it as windows extensions can already delegate code from https://msazure.visualstudio.com/One/_git/Compute-ART-GuestAgentHostPlugin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReportStatus

func ReportStatus(putStatusEndpoint string, statusToUpload string) (*http.Response, error)

Types

type GuestInformationServiceClient

type GuestInformationServiceClient struct {
	Endpoint string
}

func NewGuestInformationServiceClient

func NewGuestInformationServiceClient(e string) GuestInformationServiceClient

func (GuestInformationServiceClient) GetEndpoint

func (c GuestInformationServiceClient) GetEndpoint() string

func (GuestInformationServiceClient) GetPutStatusUri added in v1.3.14

func (c GuestInformationServiceClient) GetPutStatusUri() string

func (GuestInformationServiceClient) ReportStatus

func (c GuestInformationServiceClient) ReportStatus(statusToUpload string) (*http.Response, error)

type IGuestInformationServiceClient

type IGuestInformationServiceClient interface {
	ReportStatus(statusToUpload string) (*http.Response, error)
	GetEndpoint() string
	GetPutStatusUri() string
}

type PutStatusRequest

type PutStatusRequest struct {
	Content string
}

type TestGuestInformationClient added in v1.3.14

type TestGuestInformationClient struct {
	Endpoint string
}

func (TestGuestInformationClient) GetEndpoint added in v1.3.14

func (c TestGuestInformationClient) GetEndpoint() string

func (TestGuestInformationClient) GetPutStatusUri added in v1.3.14

func (c TestGuestInformationClient) GetPutStatusUri() string

func (TestGuestInformationClient) ReportStatus added in v1.3.14

func (c TestGuestInformationClient) ReportStatus(statusToUpload string) (*http.Response, error)

Jump to

Keyboard shortcuts

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