azuresdkhacks

package
v1.44.1-0...-2cd6497 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPlaneClient

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

func NewDataPlaneClient

func NewDataPlaneClient(client appconfiguration.BaseClient) DataPlaneClient

func (DataPlaneClient) GetKeyValues

func (c DataPlaneClient) GetKeyValues(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []appconfiguration.KeyValueFields) (result KeyValueListResultPage, err error)

func (DataPlaneClient) GetKeyValuesComplete

func (c DataPlaneClient) GetKeyValuesComplete(ctx context.Context, key string, label string, after string, acceptDatetime string, selectParameter []appconfiguration.KeyValueFields) (result KeyValueListResultIterator, err error)

func (DataPlaneClient) GetKeyValuesResponder

func (c DataPlaneClient) GetKeyValuesResponder(resp *http.Response) (result KeyValueListResult, err error)

type KeyValue

type KeyValue struct {
	autorest.Response `json:"-"`
	Key               *string            `json:"key,omitempty"`
	Label             *string            `json:"label,omitempty"`
	ContentType       *string            `json:"content_type,omitempty"`
	Value             *string            `json:"value,omitempty"`
	LastModified      *date.Time         `json:"last_modified,omitempty"`
	Tags              map[string]*string `json:"tags"`
	Locked            *bool              `json:"locked,omitempty"`
	Etag              *string            `json:"etag,omitempty"`
}

KeyValue ...

func (KeyValue) MarshalJSON

func (kv KeyValue) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for KeyValue.

type KeyValueListResult

type KeyValueListResult struct {
	autorest.Response `json:"-"`
	// Items - The collection value.
	Items *[]KeyValue `json:"items,omitempty"`
	// NextLink - The URI that can be used to request the next set of paged results.
	NextLink *string `json:"@nextLink,omitempty"`
}

KeyValueListResult the result of a list request.

func (KeyValueListResult) IsEmpty

func (kvlr KeyValueListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type KeyValueListResultIterator

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

KeyValueListResultIterator provides access to a complete listing of KeyValue values.

func NewKeyValueListResultIterator

func NewKeyValueListResultIterator(page KeyValueListResultPage) KeyValueListResultIterator

Creates a new instance of the KeyValueListResultIterator type.

func (*KeyValueListResultIterator) Next

func (iter *KeyValueListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*KeyValueListResultIterator) NextWithContext

func (iter *KeyValueListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (KeyValueListResultIterator) NotDone

func (iter KeyValueListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (KeyValueListResultIterator) Response

Response returns the raw server response from the last page request.

func (KeyValueListResultIterator) Value

func (iter KeyValueListResultIterator) Value() KeyValue

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type KeyValueListResultPage

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

KeyValueListResultPage contains a page of KeyValue values.

func NewKeyValueListResultPage

func NewKeyValueListResultPage(cur KeyValueListResult, getNextPage func(context.Context, KeyValueListResult) (KeyValueListResult, error)) KeyValueListResultPage

Creates a new instance of the KeyValueListResultPage type.

func (*KeyValueListResultPage) Next

func (page *KeyValueListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*KeyValueListResultPage) NextWithContext

func (page *KeyValueListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (KeyValueListResultPage) NotDone

func (page KeyValueListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (KeyValueListResultPage) Response

Response returns the raw server response from the last page request.

func (KeyValueListResultPage) Values

func (page KeyValueListResultPage) Values() []KeyValue

Values returns the slice of values for the current page or nil if there are no values.

Jump to

Keyboard shortcuts

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