package runtime
import "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime"
Index ¶
- Constants
- func NewPipeline(module, version string, cred azcore.TokenCredential, options *arm.ClientOptions) pipeline.Pipeline
- func NewPoller(pollerID string, finalState string, resp *http.Response, pl pipeline.Pipeline, eu func(*http.Response) error) (*pollers.Poller, error)
- func NewPollerFromResumeToken(pollerID string, token string, pl pipeline.Pipeline, eu func(*http.Response) error) (*pollers.Poller, error)
- func NewRPRegistrationPolicy(endpoint string, cred azcore.TokenCredential, o *armpolicy.RegistrationOptions) azpolicy.Policy
- type BearerTokenPolicy
- func NewBearerTokenPolicy(cred azcore.TokenCredential, opts *armpolicy.BearerTokenOptions) *BearerTokenPolicy
- func (b *BearerTokenPolicy) Do(req *azpolicy.Request) (*http.Response, error)
- type Provider
- type ProviderResponse
Constants ¶
const ( // LogRPRegistration entries contain information specific to the automatic registration of an RP. // Entries of this classification are written IFF the policy needs to take any action. LogRPRegistration log.Event = "RPRegistration" )
Functions ¶
func NewPipeline ¶
func NewPipeline(module, version string, cred azcore.TokenCredential, options *arm.ClientOptions) pipeline.Pipeline
NewPipeline creates a pipeline from connection options. The telemetry policy, when enabled, will use the specified module and version info.
func NewPoller ¶
func NewPoller(pollerID string, finalState string, resp *http.Response, pl pipeline.Pipeline, eu func(*http.Response) error) (*pollers.Poller, error)
NewPoller creates a Poller based on the provided initial response. pollerID - a unique identifier for an LRO. it's usually the client.Method string.
func NewPollerFromResumeToken ¶
func NewPollerFromResumeToken(pollerID string, token string, pl pipeline.Pipeline, eu func(*http.Response) error) (*pollers.Poller, error)
NewPollerFromResumeToken creates a Poller from a resume token string. pollerID - a unique identifier for an LRO. it's usually the client.Method string.
func NewRPRegistrationPolicy ¶
func NewRPRegistrationPolicy(endpoint string, cred azcore.TokenCredential, o *armpolicy.RegistrationOptions) azpolicy.Policy
NewRPRegistrationPolicy creates a policy object configured using the specified endpoint, credentials and options. The policy controls if an unregistered resource provider should automatically be registered. See https://aka.ms/rps-not-found for more information. Pass nil to accept the default options; this is the same as passing a zero-value options.
Types ¶
type BearerTokenPolicy ¶
type BearerTokenPolicy struct {
// contains filtered or unexported fields
}
BearerTokenPolicy authorizes requests with bearer tokens acquired from a TokenCredential.
func NewBearerTokenPolicy ¶
func NewBearerTokenPolicy(cred azcore.TokenCredential, opts *armpolicy.BearerTokenOptions) *BearerTokenPolicy
NewBearerTokenPolicy creates a policy object that authorizes requests with bearer tokens. cred: an azcore.TokenCredential implementation such as a credential object from azidentity opts: optional settings. Pass nil to accept default values; this is the same as passing a zero-value options.
func (*BearerTokenPolicy) Do ¶
Do authorizes a request with a bearer token
type Provider ¶
type Provider struct { // The provider ID. ID *string `json:"id,omitempty"` // The namespace of the resource provider. Namespace *string `json:"namespace,omitempty"` // The registration policy of the resource provider. RegistrationPolicy *string `json:"registrationPolicy,omitempty"` // The registration state of the resource provider. RegistrationState *string `json:"registrationState,omitempty"` }
Provider - Resource provider information.
type ProviderResponse ¶
type ProviderResponse struct { // Resource provider information. Provider *Provider // RawResponse contains the underlying HTTP response. RawResponse *http.Response }
ProviderResponse is the response envelope for operations that return a Provider type.
Source Files ¶
pipeline.go policy_bearer_token.go policy_register_rp.go poller.go
- Version
- v0.20.0
- Published
- Oct 22, 2021
- Platform
- darwin/amd64
- Imports
- 21 packages
- Last checked
- 46 seconds ago –
Tools for package owners.