|
| 1 | +package proto |
| 2 | + |
| 3 | +import ( |
| 4 | + "context" |
| 5 | + |
| 6 | + "storj.io/drpc" |
| 7 | +) |
| 8 | + |
| 9 | +// DRPCAgentClient20 is the Agent API at v2.0. Notably, it is missing GetAnnouncementBanners, but |
| 10 | +// is useful when you want to be maximally compatible with Coderd Release Versions from 2.9+ |
| 11 | +type DRPCAgentClient20 interface { |
| 12 | + DRPCConn() drpc.Conn |
| 13 | + |
| 14 | + GetManifest(ctx context.Context, in *GetManifestRequest) (*Manifest, error) |
| 15 | + GetServiceBanner(ctx context.Context, in *GetServiceBannerRequest) (*ServiceBanner, error) |
| 16 | + UpdateStats(ctx context.Context, in *UpdateStatsRequest) (*UpdateStatsResponse, error) |
| 17 | + UpdateLifecycle(ctx context.Context, in *UpdateLifecycleRequest) (*Lifecycle, error) |
| 18 | + BatchUpdateAppHealths(ctx context.Context, in *BatchUpdateAppHealthRequest) (*BatchUpdateAppHealthResponse, error) |
| 19 | + UpdateStartup(ctx context.Context, in *UpdateStartupRequest) (*Startup, error) |
| 20 | + BatchUpdateMetadata(ctx context.Context, in *BatchUpdateMetadataRequest) (*BatchUpdateMetadataResponse, error) |
| 21 | + BatchCreateLogs(ctx context.Context, in *BatchCreateLogsRequest) (*BatchCreateLogsResponse, error) |
| 22 | +} |
| 23 | + |
| 24 | +// DRPCAgentClient21 is the Agent API at v2.1. It is useful if you want to be maximally compatible |
| 25 | +// with Coderd Release Versions from 2.12+ |
| 26 | +type DRPCAgentClient21 interface { |
| 27 | + DRPCConn() drpc.Conn |
| 28 | + |
| 29 | + GetManifest(ctx context.Context, in *GetManifestRequest) (*Manifest, error) |
| 30 | + GetServiceBanner(ctx context.Context, in *GetServiceBannerRequest) (*ServiceBanner, error) |
| 31 | + UpdateStats(ctx context.Context, in *UpdateStatsRequest) (*UpdateStatsResponse, error) |
| 32 | + UpdateLifecycle(ctx context.Context, in *UpdateLifecycleRequest) (*Lifecycle, error) |
| 33 | + BatchUpdateAppHealths(ctx context.Context, in *BatchUpdateAppHealthRequest) (*BatchUpdateAppHealthResponse, error) |
| 34 | + UpdateStartup(ctx context.Context, in *UpdateStartupRequest) (*Startup, error) |
| 35 | + BatchUpdateMetadata(ctx context.Context, in *BatchUpdateMetadataRequest) (*BatchUpdateMetadataResponse, error) |
| 36 | + BatchCreateLogs(ctx context.Context, in *BatchCreateLogsRequest) (*BatchCreateLogsResponse, error) |
| 37 | + GetAnnouncementBanners(ctx context.Context, in *GetAnnouncementBannersRequest) (*GetAnnouncementBannersResponse, error) |
| 38 | +} |
0 commit comments